Setting.addMomentFormat method
Setting › addMomentFormat
Official
Add a moment format component to the setting.Signature:
addMomentFormat(cb: (component: MomentFormatComponent) => unknown): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| cb | (component: MomentFormatComponent) => unknown | The callback to add the moment format component. |
Returns: this — The setting.
Since: 0.9.7
Example:
setting.addMomentFormat((momentFormat) => { momentFormat.setValue('YYYY-MM-DD');});