Difference between revisions of "Section Menus"

From Lianjapedia
Jump to: navigation, search
Line 121: Line 121:
 
!width="80%"|Notes
 
!width="80%"|Notes
 
|-
 
|-
|valign="top"|Visible||Section menu visible (True | False)
+
|valign="top"|Visible||-
 
|-
 
|-
|valign="top"|Height||Section menu height
+
|valign="top"|Height||-
 
|-
 
|-
|valign="top"|Background color||Section menu background color
+
|valign="top"|Background color||The Background color is supported on the Desktop client only.
 
|-
 
|-
|valign="top"|Foreground color||Section menu foreground color
+
|valign="top"|Foreground color||The Foreground color is supported on the Desktop client only.
 
|-
 
|-
|valign="top"|Custom menu||Section menu contents (comma separated list of values).  Prefix with &#124;, < or > to align center, left or right respectively.
+
|valign="top"|Custom menu||The &#124; (center) and &gt; (align right) prefixes are available on the Desktop client only.  Menu items are always aligned left on non Desktop clients.
 
|-
 
|-
|valign="top"|Custom action||Action to perform when a menu item is selected
+
|valign="top"|Custom action||The Custom action is supported on the Desktop client only.
 
|-
 
|-
 
|valign="top"|Custom section menu||The Custom delegate script function must be written in JavaScript for non Desktop clients.
 
|valign="top"|Custom section menu||The Custom delegate script function must be written in JavaScript for non Desktop clients.
 
|-
 
|-
 
|}
 
|}

Revision as of 12:41, 12 January 2015

Under Construction

For Footer Menus, see Section Footers.

Visible

Section Menu: default Visible is False


By default, the Section Menu is not visible.

Section Menu: set Visible to True


To make the Section Menu visible, check the Visible attribute to True.

Notes on Client Support

Height

Section Menu Height


The Height attribute is used to specify the Section Menu height.

Notes on Client Support

Background color

Section Menu Background Color


The Background color is used to specify the menu background color.

Click the [...] button to access the 'Select Color' dialog.

Notes on Client Support

Foreground color

The Foreground color is used to specify the menu foreground color.

As above, click the [...] button to access the 'Select Color' dialog.

Notes on Client Support

Custom menu

Section Menu left-aligned (default)


The menu is specified as a comma-separated list of menu items. By default, the menu items are left-aligned.


Section Menu centered


To display the menu items centered, prefix the list of values with |.


Section Menu right-aligned


To display the menu items right-aligned, prefix the list of values with >.

Note: a < can be used for left-alignment.


Section Menu with pulldown


Menu items can have a single-level pulldown. The pulldown items are | separated and enclosed in parentheses.

Section Menu with pulldown


Menu items with a pulldown are displayed with a down arrow to the right of the item text. Click the arrow to display the pulldown and then select an item.


The Custom menu attribute can be queried or changed programmatically using Lianja.getElementByID("page.section").menu.

Notes on Client Support

Custom action

Menu: Custom action


When a menu item is selected, the action specified in the Custom action attribute will be performed.

The action is a SHOWDOCUMENT() action.

The selected menu item can be accessed via {}.

If no Custom action is specified, the Custom section menu Custom Delegate will be run if set.

Notes on Client Support

Custom Delegate: Custom section menu

Notes on Client Support

Notes on Client Support

Attribute Notes
Visible -
Height -
Background color The Background color is supported on the Desktop client only.
Foreground color The Foreground color is supported on the Desktop client only.
Custom menu The | (center) and > (align right) prefixes are available on the Desktop client only. Menu items are always aligned left on non Desktop clients.
Custom action The Custom action is supported on the Desktop client only.
Custom section menu The Custom delegate script function must be written in JavaScript for non Desktop clients.