C# Class Rock.Web.UI.RockBlockCustomSettings

RockBlockCustomSettings is the base abstract class that a Blocks should use if it will implement a UI for custom settings (outside of the normal block properties). Any block property that has a category of "CustomSetting" will not appear in the normal block settings.
Inheritance: Rock.Web.UI.RockBlock
Show file Open project: NewSpring/Rock

Public Methods

Method Description
GetAdministrateControls ( bool canConfig, bool canEdit ) : List

Adds icons to the configuration area of a Rock.Model.Block instance. Can be overridden to add additional icons

Protected Methods

Method Description
ShowSettings ( ) : void

Shows the settings.

lbEdit_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbEdit control.

Method Details

GetAdministrateControls() public method

Adds icons to the configuration area of a Rock.Model.Block instance. Can be overridden to add additional icons
public GetAdministrateControls ( bool canConfig, bool canEdit ) : List
canConfig bool A flag that indicates if the user can configure the instance. /// This value will be true if the user is allowed to configure the instance; otherwise false.
canEdit bool A flag that indicates if the user can edit the instance. /// This value will be true if the user is allowed to edit the instance; otherwise false.
return List

ShowSettings() protected abstract method

Shows the settings.
protected abstract ShowSettings ( ) : void
return void

lbEdit_Click() protected method

Handles the Click event of the lbEdit control.
protected lbEdit_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void