Bookshelf Home | Contents | Index | PDF |
Siebel Developer's Reference > SWE Tags > swe:togglebar, swe:for-each-toggle, swe:togglelink, swe:togglenamePurposeSWE supports showing toggle applets. Links to navigate between the toggle applets can be rendered either as a drop-down select control or as links or tabs. The toggle selection control can be rendered in any applet template using the new tag swe:togglebarSyntaxUsage<swe:togglebar type="xxx" property="zzz"> AttributesType. This can have one value, Select. If the type is set to Select, the togglebar is rendered as an HTML Select control showing the set of applets to which the user can toggle. The applet titles are used as values in the select control. Property. This attribute is to be used only when the type is set to Select (it has no effect in other cases). This attribute can have a value of FormattedHtml, in which case the HTML Select control is rendered. If this attribute is not specified, this tag acts as a conditional tag to show its contents if there are toggle applets defined. The If the applet does not have toggle applets defined, this tag and its contents are skipped. When the type attribute is not set to Select, swe:for-each-togglePurposeIterates over the number of toggle applets to show its contents. Attributesswe:togglelinkUsage<swe:togglelink state="xxx" property="yyy"> AttributesState. (Optional) Can have value Active or Inactive. If state is Active, this tag is used only if the current applet title being rendered is the currently active applet. If state is Inactive, this tag is used only if the current applet title being rendered is not the currently active applet. If not specified, the tag is shown for all applets. Property. (Optional) Can have only one value, FormattedHtml, which generates the HTML for creating a link to toggle to the applet. If this attribute is not specified, then no output is generated. swe:togglenamePurposeOutputs the title of the applet. UsageExamplesTo show the toggle applets as a select control: <swe:togglebar type="Select" > <td> <swe:control id="1" property="DisplayName"> </td> <td> <swe:this property="FormattedHtml"/> </td> where the control is used to create a label like "Show:" before the select control. To show the toggle applets as tabs or links: <td><swe:togglelink property="FormattedHtml"> <swe:togglename> </swe:togglelink> </td> |
Siebel Developer's Reference |