Hi Alex,
Try to use \XLite\View\FormModel\Type\DatepickerType as self::SCHEMA_CLASS.
Tony
Quote:
Originally Posted by Soptareanu @Alex
Hello, I want that one of my input fields in form show a datepicker. I use this class when i define my field, but it doesn't work.
'date' => [
self::SCHEMA_CLASS => '\XLite\View\FormField\Inline\Input\Text\Date',
self::SCHEMA_LABEL => static::t('Date'),
self::SCHEMA_PLACEHOLDER => static::t('Date'),
self::SCHEMA_REQUIRED => true,
],
|