A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/grid/api/gridcolumn_properties/gridcolumn_patternmask_property/ below:

Website Navigation


JavaScript Grid column - patternMask Config

patternMask

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:

Example​
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