Skip to content

Commit 69829f0

Browse files
authored
Merge pull request #32 from DHTMLX/fix-column-datepicker-description
[fix] description of asDateObject for date picker column editor config
2 parents 59cc4ac + 0f9570d commit 69829f0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/grid/configuration.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,8 +833,7 @@ An editor for cells with dates (default for a column with `type:"date"`).
833833
To use this editor, you should specify the `type:"date"` property for a column. It is also possible to set the necessary [format of date](calendar/api/calendar_dateformat_config.md) while editing a cell content with the help of the `dateFormat` option.
834834
835835
By default, after editing dates are transformed and displayed as string values.
836-
You can also save a date as a Date object by setting the `asDateObject` property to *true*
837-
in the `editorConfig` object:
836+
You can also save a date as a string representation of the Date object by setting the `asDateObject` property to *true* in the `editorConfig` object:
838837
839838
~~~jsx
840839
{
@@ -844,7 +843,7 @@ in the `editorConfig` object:
844843
header: [{ text: "Calendar", colspan: 2 }, { text: "Start date" }],
845844
type: "date", dateFormat: "%d/%m/%Y",
846845
editorConfig: {
847-
asDateObject: true // sets the datePicker mode when dates are saved as Date objects
846+
asDateObject: true // sets the datePicker mode when dates are saved as string representations of the Date object
848847
}
849848
}
850849
~~~

0 commit comments

Comments
 (0)