Optional. Sets an input mask for entering number and string values according to a special pattern
UsageâpatternMask?:
| {
pattern: ((value: string | number) => string) | string,
charFormat?: {
[char: string]: RegExp
}
}
| string,
Parametersâ
The patternMask
property can be set in two ways:
const grid = new dhx.Grid("grid_container", {
columns: [
{
id: "employee_id",
header: [{ text: "Employee ID" }],
patternMask: "ID.000"
},
// more columns configuration objects
],
// more options
});
Related article: patternMask
Related sample: Grid. Pattern and number masks
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4