C# Class Fluqi.Widget.jSelectMenu.Rendering

Responsible for setting how the control should be rendered to the page. For instance should the control CSS be rendered, should pretty layout be used, etc.
Inheritance: Core.RenderBase
Show file Open project: toepoke/Fluqi

Public Methods

Method Description
Compress ( ) : Rendering

Forces pretty rendering off so you can see the output whilst in DEBUG mode if you wish

Finish ( ) : SelectMenu

Used to flag that configuration has finished, and returns the SelectMenu object so we can continue defining SelectMenu attributes.

Rendering ( SelectMenu selectMenu ) : System

Constructor

SetAutoScript ( bool autoScript ) : Rendering

Specifies whether the control should be self-initialising (with it's own $(document).ready section, or if this should be left to the view to declare on purpose.

SetPrettyRender ( bool prettyRender ) : Rendering

Specifies if the HTML/JavaScript which is rendered should be indented in a more readable manner (as opposed to when Compress() is active (i.e. PrettyRender=false) which keeps everything in one line to keep the script size down)

SetRenderCSS ( bool renderCSS ) : Rendering

Specifies that the CSS class the jQuery UI library should be written as part of widget rendering. This is useful if you still want your pages to look "jQuery UI-ified" when your user has JavaScript disabled.

SetTabDepth ( int indentation ) : Rendering

Specifies that when writing in pretty HTML mode (see Compress) the Html helper should start writing at a particular tab depth (so everything lines up nicely when you view the source).

ShowCSS ( ) : Rendering

Writes slim CSS to the browser (jQuery UI classes aren't expanded for non-JS users)

Method Details

Compress() public method

Forces pretty rendering off so you can see the output whilst in DEBUG mode if you wish
public Compress ( ) : Rendering
return Rendering

Finish() public method

Used to flag that configuration has finished, and returns the SelectMenu object so we can continue defining SelectMenu attributes.
public Finish ( ) : SelectMenu
return SelectMenu

Rendering() public method

Constructor
public Rendering ( SelectMenu selectMenu ) : System
selectMenu SelectMenu SelectMenu object to set rendering options of
return System

SetAutoScript() public method

Specifies whether the control should be self-initialising (with it's own $(document).ready section, or if this should be left to the view to declare on purpose.
public SetAutoScript ( bool autoScript ) : Rendering
autoScript bool /// If true the control initialises itself /// If false the initialisation is left to the [calling] view ///
return Rendering

SetPrettyRender() public method

Specifies if the HTML/JavaScript which is rendered should be indented in a more readable manner (as opposed to when Compress() is active (i.e. PrettyRender=false) which keeps everything in one line to keep the script size down)
public SetPrettyRender ( bool prettyRender ) : Rendering
prettyRender bool Flags pretty rendering on or off
return Rendering

SetRenderCSS() public method

Specifies that the CSS class the jQuery UI library should be written as part of widget rendering. This is useful if you still want your pages to look "jQuery UI-ified" when your user has JavaScript disabled.
public SetRenderCSS ( bool renderCSS ) : Rendering
renderCSS bool Flags writing CSS class names on or off
return Rendering

SetTabDepth() public method

Specifies that when writing in pretty HTML mode (see Compress) the Html helper should start writing at a particular tab depth (so everything lines up nicely when you view the source).
public SetTabDepth ( int indentation ) : Rendering
indentation int How far the Html helper should indent the rendered HTML
return Rendering

ShowCSS() public method

Writes slim CSS to the browser (jQuery UI classes aren't expanded for non-JS users)
public ShowCSS ( ) : Rendering
return Rendering