C# Class Fluqi.Widget.jToolTip.ToolTip

Inheritance: Core.ControlBase, IControlRenderer, IControl
Afficher le fichier Open project: toepoke/Fluqi Class Usage Examples

Méthodes publiques

Méthode 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 ( TextWriter writer ) : System

Detailed constructor

ToolTip ( TextWriter writer, string id ) : System

Detailed constructor

WithAttribute ( string attrName, string attrValue ) : ToolTip

Registers an HTML attribute to be added to the control when it is rendered.

WithCss ( string cssClasses ) : ToolTip

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 ) : ToolTip

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.

Méthodes protégées

Méthode 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 ) : ToolTip

Registers an ID attribute to be added to the control when it is rendered.

Method Details

GetControlScript() protected méthode

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).
protected GetControlScript ( ) : string
Résultat string

GetControlScript() protected méthode

Writes out the calling script for the jQuery Tabs plugin, adding options that have been a defined.
protected GetControlScript ( int tabDepth ) : string
tabDepth int /// How far to indent the script code setting. ///
Résultat string

GetStartUpScript() public méthode

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.
public GetStartUpScript ( ) : string
Résultat string

GetStartUpScript() public méthode

Writes out the tabs initialisation script to the Response.
Useful if you want more control over where the initialisation takes place.
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. ///
Résultat string

GetTagHtml() protected méthode

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.
protected GetTagHtml ( ) : string
Résultat string

IsGlobal() protected méthode

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
protected IsGlobal ( ) : bool
Résultat bool

Render() public méthode

Writes the HTML for the ToolTip control to the response stream.
public Render ( ) : void
Résultat void

RenderStartUpScript() public méthode

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.
public RenderStartUpScript ( ) : void
Résultat void

RenderStartUpScript() public méthode

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.
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. ///
Résultat void

ToolTip() public méthode

Detailed constructor
public ToolTip ( TextWriter writer ) : System
writer System.IO.TextWriter Response stream to write the control to
Résultat System

ToolTip() public méthode

Detailed constructor
public ToolTip ( TextWriter writer, string id ) : System
writer System.IO.TextWriter 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) ///
Résultat System

WithAttribute() public méthode

Registers an HTML attribute to be added to the control when it is rendered.
public WithAttribute ( string attrName, string attrValue ) : ToolTip
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
Résultat ToolTip

WithCss() public méthode

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).
public WithCss ( string cssClasses ) : ToolTip
cssClasses string Set of space separated CSS class names to add
Résultat ToolTip

WithID() protected méthode

Registers an ID attribute to be added to the control when it is rendered.
protected WithID ( string idValue ) : ToolTip
idValue string Value for the ID
Résultat ToolTip

WithStyle() public méthode

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.
public WithStyle ( string styleName, string styleValue ) : ToolTip
styleName string Name of the style attribute to be added
styleValue string Value of the style to be added
Résultat ToolTip