
|
|
Die Zellenvalidierung ist für die Primärschlüsselspalte wichtig, um Serverfehler oder -ausnahmen zu vermeiden. Die Primärschlüsselspalte wird mit der Eigenschaft IDFieldName zugewiesen. Normalerweise handelt es sich um die ID-Spalte.
|
"cellEditor": { // optional: defines cell-editing options for this column
"enabled": true, // *{boolean} to indicate whether cell editing is enable for this column
"validator": { // optional: when defined will validate input values against the chosen validator types and error and success messages will be displayed.
"types": ['NotEmpty'], // {Array} optional: defines list of validator types, e.g. 'NotEmpty', 'ValidURL' or 'Custom'.
"errorMessage": "[[invalidNumberNotEmpty]]", // *{string} localization token name of the error message.
"errorStyle": "cellValidationErrorStyle" // *{string} style definition name of the error message. }
}
"cellValidationErrorStyle": {
"backgroundColor": "",
"secondaryBackgroundColor": "",
"foregroundColor": "black",
"textDecoration": "none",
"image": "",
"lineColor": "red",
"borderStyle": "solid",
"borderWidth": "1px",
"fontFamily": ["helvetica", "arial"],
"fontStyle": "normal",
"fontSize": "11px",
"fontWeight": "normal"
},
"cellValidationErrorTooltipStyle": {
"backgroundColor": "red",
"secondaryBackgroundColor": "",
"foregroundColor": "white",
"textDecoration": "none",
"image": "",
"lineColor": "white",
"borderStyle": "solid",
"borderWidth": "1px",
"fontFamily": ["helvetica", "arial"],
"fontStyle": "normal",
"fontSize": "11px",
"fontWeight": "normal"
},
"tooltipStyle": {
"backgroundColor": "#0000ff",
"secondaryBackgroundColor": "",
"foregroundColor": "#ffffff",
"textDecoration": "",
"image": "",
"lineColor": "",
"borderStyle": "none",
"borderWidth": "",
"fontFamily": ["helvetica", "arial"],
"fontStyle": "normal",
"fontSize": "12px",
"fontWeight": ""
},
|
Renderer
|
Validierer
|
|---|---|
|
string
|
<None>, NotEmpty, ValidURL
|
|
integer
|
<None>, NotEmpty, (ValidInteger is default)
|
|
long
|
<None>, NotEmpty, (ValidNumeric is default)
|
|
number
|
<None>, NotEmpty, (ValidNumeric is default)
|
|
boolean
|
<None>, NotEmpty, (ValidBoolean is default)
|
|
location
|
<None>, NotEmpty, (ValidLocation is default)
|
|
html
|
<None>, NotEmpty
|
|
imagelink
|
<None>, NotEmpty
|
|
hyperlink
|
<None>, NotEmpty, ValidURL
|
|
datetime
|
<None>, NotEmpty, (ValidDatetime is default)
|