import BaseCellConfigurator from 'prg-editor/src/cells/BaseCellConfigurator.js'
BaseCellConfigurator
Direct Subclass:
Common interface of {TableBuilder} cell configurator
Constructor Summary
Public Constructor | ||
public |
constructor(attr: string, name: string, translator: function(text: string): string) Creates an instance of BaseCellConfigurator. |
Method Summary
Public Methods | ||
public |
map(fn: function(value: string, data: object): any): BaseCellConfigurator Set Filter function for column |
|
public |
orderBy(defaultDirection: number, fieldName: string): BaseCellConfigurator Set field to order by |
|
public |
Use this field as default orderer |
Public Constructors
public constructor(attr: string, name: string, translator: function(text: string): string) source
Creates an instance of BaseCellConfigurator.
Params:
Name | Type | Attribute | Description |
attr | string | Object attribute key |
|
name | string | Column name |
|
translator | function(text: string): string |
|
Text translator |
Public Methods
public map(fn: function(value: string, data: object): any): BaseCellConfigurator source
Set Filter function for column
Params:
Name | Type | Attribute | Description |
fn | function(value: string, data: object): any | Preprocessor function |
public orderBy(defaultDirection: number, fieldName: string): BaseCellConfigurator source
Set field to order by
Params:
Name | Type | Attribute | Description |
defaultDirection | number |
|
-1=desc, 1=asc, 0=without direction |
fieldName | string |
|
override name of field which will be sent to API |