interface ValueFormater {
    datasource: Datasource<any>;
    fromSource(value: any, type: DataTypes, attribute: string, isFilter: boolean): any;
    fromSourceDisplay(value: any, type: DataTypes, attribute: string, isFilter: boolean): any;
    fromSourceGrouping(value: any, type: DataTypes, attribute: string, isFilter: boolean): any;
    placeholder(type: DataTypes, _attribute: string, isFilter: boolean): string;
    toFilter(value: any, type: DataTypes, attribute: string, isFilter: boolean): any;
    toSource(value: any, type: DataTypes, attribute: string, isFilter: boolean): any;
}

Properties

datasource: Datasource<any>

Methods

  • used by grid to insert in edit cells/filter

    Parameters

    • value: any
    • type: DataTypes
    • attribute: string
    • isFilter: boolean

    Returns any

  • displayed value when cell is readonly if you dont really need it, then just return the value of this.fromDate(value)

    Parameters

    • value: any
    • type: DataTypes
    • attribute: string
    • isFilter: boolean

    Returns any

  • how you want values grouped

    Parameters

    • value: any
    • type: DataTypes
    • attribute: string
    • isFilter: boolean

    Returns any

  • placeholder you want to be displayed

    Parameters

    • type: DataTypes
    • _attribute: string
    • isFilter: boolean

    Returns string

  • value user inputs gets converted to value

    Parameters

    • value: any
    • type: DataTypes
    • attribute: string
    • isFilter: boolean

    Returns any

  • value user inputs gets converted to value

    Parameters

    • value: any
    • type: DataTypes
    • attribute: string
    • isFilter: boolean

    Returns any