C# Class Fluqi.Utilities.jAnimation.Animation

显示文件 Open project: toepoke/Fluqi Class Usage Examples

Public Methods

Method Description
Animation ( TextWriter writer, string key ) : System

Constructor

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.

GetStartUpScript ( ) : string

Renders (and returns) the JavaScript required to initialise the control with the required options. A jQuery document.ready section is wrapped around the script.

GetStartUpScript ( bool incDocReady ) : string

Writes out the document.ready, text/JavaScript and tabs initialisation script to the Response.

Useful if you want more control over where the initialisation takes place.

Render ( ) : void

There is not underlying control for a Animation object to render onto. The "Render" method merely calls the initialisation routine and adds it into the outgoing Response object

RenderStartUpScript ( ) : void

Writes out the document.ready, text/JavaScript and Animation 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 Animation initialisation script to the Response.

Useful if you want more control over where the initialisation takes place.

Method Details

Animation() public method

Constructor
public Animation ( TextWriter writer, string key ) : System
writer System.IO.TextWriter Response stream to write the control to.
key string ID of the button, this must be unique for the page
return System

GetControlScript() public method

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).
public GetControlScript ( ) : string
return string

GetControlScript() public method

Writes out the calling script for the jQuery Tabs plugin, adding options that have been a defined.
public GetControlScript ( int tabDepth ) : string
tabDepth int /// How far to indent the tabs in the script code. ///
return string

GetStartUpScript() public method

Renders (and returns) the JavaScript required to initialise the control with the required options. A jQuery document.ready section is wrapped around the script.
public GetStartUpScript ( ) : string
return string

GetStartUpScript() public method

Writes out the document.ready, text/JavaScript and 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. ///
return string

Render() public method

There is not underlying control for a Animation object to render onto. The "Render" method merely calls the initialisation routine and adds it into the outgoing Response object
public Render ( ) : void
return void

RenderStartUpScript() public method

Writes out the document.ready, text/JavaScript and Animation initialisation script to the Response.
Useful if you want more control over where the initialisation takes place.
public RenderStartUpScript ( ) : void
return void

RenderStartUpScript() public method

Writes out the document.ready, text/JavaScript and Animation 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. ///
return void