Skip to content

Setting.addMomentFormat method

Setting › addMomentFormat

Official

Add a moment format component to the setting.

Signature:

addMomentFormat(cb: (component: MomentFormatComponent) => unknown): this

Parameters:

Parameter Type Description
cb (component: MomentFormatComponent) => unknown The callback to add the moment format component.

Returns: thisThe setting.

Since: 0.9.7

Example:

setting.addMomentFormat((momentFormat) => {
momentFormat.setValue('YYYY-MM-DD');
});