C# Class Rock.Web.UI.Controls.RockControlHelper

Helper class to intialize and render rock controls with Bootstrap html elements
ファイルを表示 Open project: SparkDevNetwork/Rock Class Usage Examples

Public Methods

Method Description
CreateChildControls ( IRockControl rockControl, System.Web.UI.ControlCollection controls ) : void

Creates the child controls and handles adding the required field validator control.

Init ( IRockControl rockControl ) : void

Inits the specified rock control.

RenderControl ( IRockControl rockControl, System.Web.UI.HtmlTextWriter writer, string additionalCssClass = "" ) : void

Renders the control which handles adding all the IRockControl common pieces (Label, Help, etc.).

RenderControl ( string label, Control control, System.Web.UI.HtmlTextWriter writer ) : void

Method Details

CreateChildControls() public static method

Creates the child controls and handles adding the required field validator control.
public static CreateChildControls ( IRockControl rockControl, System.Web.UI.ControlCollection controls ) : void
rockControl IRockControl The rock control.
controls System.Web.UI.ControlCollection The controls.
return void

Init() public static method

Inits the specified rock control.
public static Init ( IRockControl rockControl ) : void
rockControl IRockControl The rock control.
return void

RenderControl() public static method

Renders the control which handles adding all the IRockControl common pieces (Label, Help, etc.).
public static RenderControl ( IRockControl rockControl, System.Web.UI.HtmlTextWriter writer, string additionalCssClass = "" ) : void
rockControl IRockControl The rock control.
writer System.Web.UI.HtmlTextWriter The writer.
additionalCssClass string The additional CSS class.
return void

RenderControl() public static method

public static RenderControl ( string label, Control control, System.Web.UI.HtmlTextWriter writer ) : void
label string
control System.Web.UI.Control
writer System.Web.UI.HtmlTextWriter
return void