Class | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GxExpression | Expressions are Javascript functions which are written as strings. When you provide an expression to the grid, the grid converts the expression into a function for you and then executes the function on the client. Expressions can be used with the columns ValueGetterExpression, ValueFormatterExpression, ValueSetterExpression, ValueParserExpression. For example you can add a virtual column to the grid and define a value getter expression to get the value of this column based on other two columns. Expression can be as simple as "data.CDNumber" or more complex as the GxExpressionNumbersFormatter which can accepts parameters. When working with expression key the following points in mind:
Expression can access several predefined variables :
| ||||||||||||||||||
GxExpressionAbstract | Abstract implementation for GxExpressionInterface | ||||||||||||||||||
GxExpressionBytesFormatter | The class defines a grid expression to format bytes to one of the following measuring terms : ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] | ||||||||||||||||||
GxExpressionDateTimesFormatter | The class defines a grid expression to format date/timestamps according to BBj supported masks | ||||||||||||||||||
GxExpressionDatesFormatter | The class defines a grid expression to format date/timestamps according to BBj supported masks | ||||||||||||||||||
GxExpressionNumbersFormatter | The class defines a grid expression to format numbers according to BBj supported masks | ||||||||||||||||||
GxExpressionStringsFormatter | The class defines a grid expression to format strings according to BBj supported masks | ||||||||||||||||||
GxExpressionTimestampsFormatter | Alias for GxExpressionDateTimesFormatter |
Interface | Description |
---|---|
GxExpressionInterface | GxExpressionInterface |