0

I am trying to show the date picker in the mass action field in the custom block grid.

Here is my code:

$this->getMassactionBlock()->addItem(
    'update_eta',
        [
            'label' => __('Update ETA (Don\'t Notify)'),
            'url' => $this->getUrl('*/*/massUpdateEta'),
            'additional' => [
                'eta_value' => [
                    'name' => 'eta_value',
                        'type'     => 'date',
                        'class' => 'required-entry control-text',
                        'label' => __('ETA Value'),
                        'gmtoffset' => true,
                        'format'    => '%d.%m.%Y'
            ],
        ]
    ]
);

block-grid-mass-action-datepicker.png

The date picker icon is being shown with the textbox, but the date picker is not being opened.

Can anyone help me to fix this problem?

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.