Метод | Описание | |
---|---|---|
GetStartUpScript ( ) : string |
Renders (and returns) the JavaScript required to initialise the SelectMenu control with the required options. A jQuery document.ready section is wrapped around the script.
|
|
GetStartUpScript ( bool incDocReady ) : string |
Writes out the tabs initialisation script to the Response. Useful if you want more control over where the initialisation takes place. |
|
Items ( ) : jSelectMenuItem.SelectMenuItems |
The SelectMenuItems that should appear under the SelectMenu
|
|
Render ( ) : void |
Writes the HTML for the SelectMenu control to the response stream.
|
|
RenderStartUpScript ( ) : void |
Writes out the document.ready, text/JavaScript and control initialisation script to the Response. Useful if you want more control over where the initialisation takes place. |
|
RenderStartUpScript ( bool incDocReady ) : void |
Writes out the document.ready, text/JavaScript and control initialisation script to the Response. Useful if you want more control over where the initialisation takes place. |
|
SelectMenu ( |
Detailed constructor
|
|
SelectMenu ( |
Detailed constructor
|
|
WithAttribute ( string attrName, string attrValue ) : |
Registers an HTML attribute to be added to the control when it is rendered.
|
|
WithCss ( string cssClasses ) : |
Registers a set of CSS class names to be added to the control when it is rendered. This is in addition to jQuery UI styles that may appear (see RenderCss property).
|
|
WithStyle ( string styleName, string styleValue ) : |
Registers an embedded style setting to be added to the control when it is rendered. These are written out as part of the "style" attribute, so we might add 'WithStyle("border", "solid 1px blue")' for example.
|
Метод | Описание | |
---|---|---|
GetControlScript ( ) : string |
Writes out the initialisation JavaScript to configure the tabs object client-side. Useful if you want to declare your own document.ready and add in the initialisation yourself (if you have additional initialisation you want to perform for instance). |
|
GetControlScript ( int tabDepth ) : string |
Writes out the calling script for the jQuery Tabs plugin, adding options that have been a defined.
|
|
GetTagHtml ( ) : string |
Builds and returns the HTML for the SelectMenu control (basically the DIV). JavaScript initialisation for the control is also added to the response stream if the AutoScript rendering option is true.
|
|
Reset ( |
Initialises the control back to its initial state
|
|
WithID ( string idValue ) : |
Registers an ID attribute to be added to the control when it is rendered.
|
protected GetControlScript ( int tabDepth ) : string | ||
tabDepth | int | /// How far to indent the script code setting. /// |
Результат | string |
public GetStartUpScript ( bool incDocReady ) : string | ||
incDocReady | bool | /// If true wraps the initialisation script with a jQuery document.ready section /// If false only the control initialisation script is written. /// |
Результат | string |
public Items ( ) : jSelectMenuItem.SelectMenuItems | ||
Результат | jSelectMenuItem.SelectMenuItems |
public RenderStartUpScript ( bool incDocReady ) : void | ||
incDocReady | bool | /// If true the control initialisation is wrapped in a jQuery document.ready and script /// declaration. /// If false no wrapping takes place. /// |
Результат | void |
protected Reset ( |
||
writer | Writer to use when rendering the control | |
id | string | ID to render for the control |
Результат | void |
public SelectMenu ( |
||
writer | Response stream to write the control to | |
Результат | System |
public SelectMenu ( |
||
writer | Response stream to write the control to | |
id | string | ID of the control (which must be unique on the page) |
Результат | System |
public WithAttribute ( string attrName, string attrValue ) : |
||
attrName | string | Name of the HTML attribute, e.g. "Menu" or "id" for example |
attrValue | string | Value to be applied when the attribute is rendered |
Результат |
public WithCss ( string cssClasses ) : |
||
cssClasses | string | Set of space separated CSS class names to add |
Результат |
protected WithID ( string idValue ) : |
||
idValue | string | Value for the ID |
Результат |
public WithStyle ( string styleName, string styleValue ) : |
||
styleName | string | Name of the style attribute to be added |
styleValue | string | Value of the style to be added |
Результат |