Members
-
field :string
-
Details
-
title :string
-
Details
-
uid :string
-
Details
Methods
-
defaultClassesFunc( record, field ) → {Array.<string>}
-
Description
This default implementation uses the field.
Parameters
Name Type Description recordNexusHoratio.widget.Grid~GridRecord Record to style.
fieldstring Field to style.
Returns
Details
-
defaultRenderFunc( record, field ) → {NexusHoratio.widget.Widget}
-
Parameters
Name Type Description recordNexusHoratio.widget.Grid~GridRecord Record to render.
fieldstring Field to render.
Returns
Details
-
render( record ) → {NexusHoratio.widget.Widget}
-
Description
Use the registered rendering function to create the widget.
Parameters
Name Type Description recordNexusHoratio.widget.Grid~GridRecord Record to render.
Returns
Details
-
classList( record ) → {Array.<string>}
-
Description
Use the registered
ColumnClassesFuncto return CSS classes.Parameters
Name Type Description recordNexusHoratio.widget.Grid~GridRecord Record to examine.
Returns
Details
-
colClassesFunc( func ) → {NexusHoratio.widget.GridColumn}
-
Description
Sets the function used to style a cell.
If no value is passed, it will set the default function.
Parameters
Name Type Description funcNexusHoratio.widget.GridColumn~ColumnClassesFunc Styling function.
Returns
Details
-
renderFunc( [ func ] ) → {NexusHoratio.widget.GridColumn}
-
Description
Sets the function used to render the column.
If no value is passed, it will set the default function.
Parameters
Name Type Attributes Description funcNexusHoratio.widget.GridColumn~RenderFunc <optional> Rendering function.
Returns
Details
-
setTitle( [ title ] ) → {NexusHoratio.widget.GridColumn}
-
Description
Set the title string.
If no value is passed, it will default back to the name of the field.
Parameters
Name Type Attributes Description titlestring <optional> New title for the column.
Returns
Details
Type Definitions
-
ColumnClassesFunc( record, field ) → {Array.<string>}
-
Parameters
Name Type Description recordNexusHoratio.widget.Grid~GridRecord Record to style.
fieldstring Field to style.
Returns
Details
-
RenderFunc( record, field ) → {NexusHoratio.widget.Widget}
-
Parameters
Name Type Description recordNexusHoratio.widget.Grid~GridRecord Record to render.
fieldstring Field to render.
Returns
Details