Method | Description | |
---|---|---|
GetStartUpScript ( ) : string |
Renders (and returns) the JavaScript required to initialise the ToolTip 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. |
|
Render ( ) : void |
Writes the HTML for the ToolTip 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. |
|
ToolTip ( |
Detailed constructor
|
|
ToolTip ( |
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.
|
Method | Description | |
---|---|---|
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 ToolTip control (basically the DIV). JavaScript initialisation for the control is also added to the response stream if the AutoScript rendering option is true.
|
|
IsGlobal ( ) : bool |
Flags that tooltip settings should be applied globally on the page In essence this just looks for an empty ID. If the ID is empty, we're not targetting a specific element => we're targetting everything on the page |
|
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. /// |
return | 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. /// |
return | string |
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. /// |
return | void |
public ToolTip ( |
||
writer | Response stream to write the control to | |
return | System |
public ToolTip ( |
||
writer | Response stream to write the control to | |
id | string | /// ID of the control (which must be unique on the page) /// Leave this empty to apply the tooltip settings to everything on the page (e.g. if you're targetting the /// [title] attribute for everything on the page) /// |
return | System |
public WithAttribute ( string attrName, string attrValue ) : |
||
attrName | string | Name of the HTML attribute, e.g. "ToolTip" or "id" for example |
attrValue | string | Value to be applied when the attribute is rendered |
return |
public WithCss ( string cssClasses ) : |
||
cssClasses | string | Set of space separated CSS class names to add |
return |
protected WithID ( string idValue ) : |
||
idValue | string | Value for the ID |
return |
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 |
return |