|
home / documentation / reference / ishorizontal
IsHorizontal
- Description:
- Boolean value indicating how the menu should be presented: true
means the menu is displayed horizontally, false means the menu should be
be displayed vertically.
- Value:
- Boolean (true or false), Integer (1=true,
0=false), or JavaScript expression that returns a boolean value.
- Applies To:
- Menus.
- Browser Compatibility:
- IsHorizontal is supported in all browsers.
- Comments:
- In horizontal menus that are also variable width
(IsVariableWidth), the individual menu items are each reduced to
the width of their content (subject to VariableWidthMinimum). Otherwise
the individual menu items are dimensioned in the same manner that they would be
if they were vertical menus. This is to ensure that vertical child menus that are
dimensioned identically to their horizontal parents (same widths, padding, and
border settings) will align correctly beneath their parent menu items.
- Examples:
// Ok:
IsHorizontal:true,
IsHorizontal:0,
IsHorizontal:(window.thisPage=="cf")?1:0,
// if the user defined variable "thisPage" is "cf",
// IsHorizontal is true
// Incorrect:
IsHorizontal:"false", // quotes not allowed around booleans
IsHorizontal:"0",
IsHorizontal:'(window.thisPage=="cf")?1:0', // no quoted expressions
- Default:
- true
- See Also:
-
PositionChild
|