LCssDropDownMenu class file class
LCssDropDownMenu class file displays a css driven menu on a Web page. You can set the alignment of the menu through the Horizontal property. If you do not have your own menu styling with themes, you may setUseStylingAsset to true.
Example:
- <com:TCssDropDownMenu Horizontal="false" />
Namespace: Lithron.Web.UI.WebControls
Properties
- Horizontal, boolean, kept in viewstate
Sets the alignment of the menu, true = horizontal and false = vertical. - CssHorizontalFile, string, kept in view state
Sets the css file to be used for horizontal menus - CssVerticalFile, string, kept in view state
Sets the css file to be used for vertical menus - CssDirectory, string, kept in view state
Sets the css file directory - JsDirectory, string, kept in view state
Set the javascript directory - JsFile, string, kept in view state
Set the javascript filename - TopParentNodeCssClass, string, kept in view state
Set the css class name of the top most TCssDropDownMenuNode - ParentNodeCssClass<b>, string, kept in view state
<br>Set the css class name of parent (nodes with children nodes) TCssDropDownMenuNodes
- <b>NodeCssClass, string, kept in view state
Set the node css class name of ending TCssDropDownMenuNodes - DisabledCssClass, string kept in view state
Set the node css class name of disabled TCssDropDownMenuNodes
Note, that the default css files need to be located under the root of your site unders js/cssdropdownmenu/css with cssdropdownmenu-horizontal.css and cssdropdownmenu-vertical.css controlling the aligments. There is also a small javascript file for IE non-support of the virtual tage hover. Based off the work of Son of Suckerfish by Patrick Griffiths and Dan Webb, see http://www.htmldog.com/articles/suckerfish/dropdowns/
Method Summary |
protected
void
|
Adds attributes related to a hyperlink element to renderer.
|
string
|
|
string
|
|
string
|
|
string
|
|
string
|
|
string
|
|
boolean
|
|
string
|
|
string
|
|
string
|
|
string
|
|
string
|
|
protected
void
|
|
string
|
|
string
|
|
void
|
Menu initialization
|
void
|
Renders the menu, and itinitialize top parent nodes css.
|
void
|
|
void
|
|
void
|
|
void
|
|
void
|
|
void
|
|
void
|
|
void
|
|
void
|
|
void
|
|
void
|
|
void
|
|
void
|
|
void
|
|
Method Details |
addAttributesToRender
protected void addAttributesToRender |
(THtmlWriter $writer ) |
Adds attributes related to a hyperlink element to renderer.
Input |
THtmlWriter | $writer | the writer used for the rendering purpose |
Output |
Exception |
|
getCssDirectory
public string getCssDirectory |
() |
Output |
string
| the name of the css directory |
Exception |
|
getCssHorizontalAsset
public string getCssHorizontalAsset |
() |
Output |
string
| the name of the css horizontal asset |
Exception |
|
getCssHorizontalFile
public string getCssHorizontalFile |
() |
Output |
string
| the name of the css horizontal file |
Exception |
|
getCssVerticalAsset
public string getCssVerticalAsset |
() |
Output |
string
| the name of the css vertical asset |
Exception |
|
getCssVerticalFile
public string getCssVerticalFile |
() |
Output |
string
| the name of the css vertical file |
Exception |
|
getDisabledCssClass
public string getDisabledCssClass |
() |
Output |
string
| the disabled menu node css class the css class name |
Exception |
|
getHorizontal
public boolean getHorizontal |
() |
Output |
boolean
| the menu alignment true means a horizontal menu, false means a vertical menu |
Exception |
|
getJsAsset
public string getJsAsset |
() |
Output |
string
| the name of the js asset |
Exception |
|
getJsDirectory
public string getJsDirectory |
() |
Output |
string
| the name of the js directory |
Exception |
|
getJsFile
public string getJsFile |
() |
Output |
string
| the name of the js file |
Exception |
|
getNodeCssClass
public string getNodeCssClass |
() |
Output |
string
| the node css class name |
Exception |
|
getParentNodeCssClass
public string getParentNodeCssClass |
() |
Output |
string
| the parent node css class name |
Exception |
|
getTagName
protected void getTagName |
() |
|
getTopParentNodeCssClass
public string getTopParentNodeCssClass |
() |
Output |
string
| the top level parent node css class name |
Exception |
|
getUseStylingAsset
public string getUseStylingAsset |
() |
Output |
string
| the name of the js asset |
Exception |
|
onLoad
public void onLoad |
(mixed $param ) |
Menu initialization
|
render
public void render |
(mixed $writer ) |
Renders the menu, and itinitialize top parent nodes css.
|
setCssDirectory
public void setCssDirectory |
(boolean $value ) |
Input |
boolean | $value | the name of the css directory |
|
setCssHorizontalAsset
public void setCssHorizontalAsset |
(boolean $value ) |
Input |
boolean | $value | the name of the css horizontal asset |
|
setCssHorizontalFile
public void setCssHorizontalFile |
(boolean $value ) |
Input |
boolean | $value | the name of the css horizontal file |
|
setCssVerticalAsset
public void setCssVerticalAsset |
(boolean $value ) |
Input |
boolean | $value | the name of the css vertical asset |
|
setCssVerticalFile
public void setCssVerticalFile |
(boolean $value ) |
Input |
boolean | $value | the name of the css vertical file |
|
setDisabledCssClass
public void setDisabledCssClass |
(string $value ) |
Input |
string | $value | the menu alignment css class name |
|
setHorizontal
public void setHorizontal |
(boolean $value ) |
Input |
boolean | $value | the menu alignment true means a horizontal menu, false means a vertical menu |
|
setJsAsset
public void setJsAsset |
(boolean $value ) |
Input |
boolean | $value | the name of the js asset |
|
setJsDirectory
public void setJsDirectory |
(boolean $value ) |
Input |
boolean | $value | the name of the js directory |
|
setJsFile
public void setJsFile |
(boolean $value ) |
Input |
boolean | $value | the name of the js file |
|
setNodeCssClass
public void setNodeCssClass |
(string $value ) |
Input |
string | $value | the node css class name |
|
setParentNodeCssClass
public void setParentNodeCssClass |
(string $value ) |
Input |
string | $value | the parent node css class name |
|
setTopParentNodeCssClass
public void setTopParentNodeCssClass |
(string $value ) |
Input |
string | $value | the top level parent node css class name |
|
setUseStylingAsset
public void setUseStylingAsset |
(boolean $value ) |
Input |
boolean | $value | the name of the js asset |
|