C# Class Skybrud.Umbraco.GridData.Converters.Fanoe.FanoeGridConverter

Converter for Grid editors from the Fanoe starter kit.
Inheritance: IGridConverter
Show file Open project: skybrud/Skybrud.Umbraco.GridData

Public Methods

Method Description
ConvertControlValue ( GridControl control, JToken token, IGridControlValue &value ) : bool

Converts the specified token into an instance of IGridControlValue.

ConvertEditorConfig ( GridEditor editor, JToken token, IGridEditorConfig &config ) : bool

Converts the specified token into an instance of IGridEditorConfig.

GetControlWrapper ( GridControl control, GridControlWrapper &wrapper ) : bool

Gets an instance GridControlWrapper for the specified control.

Method Details

ConvertControlValue() public method

Converts the specified token into an instance of IGridControlValue.
public ConvertControlValue ( GridControl control, JToken token, IGridControlValue &value ) : bool
control GridControl The parent control.
token JToken The instance of JToken representing the control value.
value IGridControlValue The converted value.
return bool

ConvertEditorConfig() public method

Converts the specified token into an instance of IGridEditorConfig.
public ConvertEditorConfig ( GridEditor editor, JToken token, IGridEditorConfig &config ) : bool
editor GridEditor
token JToken The instance of JToken representing the editor config.
config IGridEditorConfig The converted config.
return bool

GetControlWrapper() public method

Gets an instance GridControlWrapper for the specified control.
public GetControlWrapper ( GridControl control, GridControlWrapper &wrapper ) : bool
control GridControl The control to be wrapped.
wrapper Skybrud.Umbraco.GridData.Rendering.GridControlWrapper The wrapper.
return bool