Renderers
Collection of render functions of a specific type (eg. React renderers).
Constructor Summary
Public Constructor | ||
public |
constructor(renderers: object<string, Renderer>) Creates a new set of renderers for a set of types. |
Member Summary
Public Members | ||
public |
cachedValues: * |
|
public |
renderers: * |
Method Summary
Public Methods | ||
public |
bustCache(type: *, viewType: *, dataValue: *) |
|
public |
cache(type: *, viewType: *, dataValue: *, create: *): * |
|
public |
getDisplay(viewType: *, renderData: *): * Returns a "pretty" data value that is represented by this view type. |
|
public |
getTableProps(viewType: *, renderData: *): * Returns a map of properties to use to display a table. |
|
public |
getValue(viewType: *, renderData: *): * Returns the raw data value that is represented by this view type. |
|
public |
getViewTypes(renderData: *): * |
|
public |
initialize(viewType: *, renderData: *): Promise Initializes the view type to display with a specific set of data. |
|
public |
parseViewType(viewType: *, renderData: *): * If the view type passed in is a string and if the |
|
public |
Registers a new renderer for a specific type. |
|
public |
renderFilter(viewType: *, renderData: *): * |
|
public |
renderFormField(viewType: *, renderData: *): * |
|
public |
renderFormFilter(viewType: *, renderData: *): * |
|
public |
renderStaticField(viewType: *, renderData: *): * |
|
public |
renderStaticTableCell(viewType: *, renderData: *): * |
|
public |
renderTableCell(viewType: *, renderData: *): * |
Public Constructors
Public Methods
public bustCache(type: *, viewType: *, dataValue: *) source
Params:
Name | Type | Attribute | Description |
type | * | ||
viewType | * | ||
dataValue | * |
public cache(type: *, viewType: *, dataValue: *, create: *): * source
Params:
Name | Type | Attribute | Description |
type | * | ||
viewType | * | ||
dataValue | * | ||
create | * |
Return:
* |
public getDisplay(viewType: *, renderData: *): * source
Returns a "pretty" data value that is represented by this view type.
Params:
Name | Type | Attribute | Description |
viewType | * | ||
renderData | * |
Return:
* |
public getTableProps(viewType: *, renderData: *): * source
Returns a map of properties to use to display a table.
Params:
Name | Type | Attribute | Description |
viewType | * | ||
renderData | * |
Return:
* |
public getValue(viewType: *, renderData: *): * source
Returns the raw data value that is represented by this view type.
Params:
Name | Type | Attribute | Description |
viewType | * | ||
renderData | * |
Return:
* |
public getViewTypes(renderData: *): * source
Params:
Name | Type | Attribute | Description |
renderData | * |
Return:
* |
public initialize(viewType: *, renderData: *): Promise source
Initializes the view type to display with a specific set of data. This is normally to call the required API calls before the data is display.
Params:
Name | Type | Attribute | Description |
viewType | * | ||
renderData | * |
public parseViewType(viewType: *, renderData: *): * source
If the view type passed in is a string and if the viewTypes
property
exists in the renderData options, attempt to look up the viewType by name.
Params:
Name | Type | Attribute | Description |
viewType | * | ||
renderData | * |
Return:
* |
public register(typeName: string, renderer: Renderer) source
Registers a new renderer for a specific type.
public renderFilter(viewType: *, renderData: *): * source
Params:
Name | Type | Attribute | Description |
viewType | * | ||
renderData | * |
Return:
* |
public renderFormField(viewType: *, renderData: *): * source
Params:
Name | Type | Attribute | Description |
viewType | * | ||
renderData | * |
Return:
* |
public renderFormFilter(viewType: *, renderData: *): * source
Params:
Name | Type | Attribute | Description |
viewType | * | ||
renderData | * |
Return:
* |
public renderStaticField(viewType: *, renderData: *): * source
Params:
Name | Type | Attribute | Description |
viewType | * | ||
renderData | * |
Return:
* |
public renderStaticTableCell(viewType: *, renderData: *): * source
Params:
Name | Type | Attribute | Description |
viewType | * | ||
renderData | * |
Return:
* |
public renderTableCell(viewType: *, renderData: *): * source
Params:
Name | Type | Attribute | Description |
viewType | * | ||
renderData | * |
Return:
* |