I want to add 'onclick' attribute on checkboxes, added through below code.

        'header' => __(''),
        'index' => 'entity_id',
        'filter' => false,
        'sortable' => false,
        'type' => 'checkbox',
        'field_name' => 'customer_entity_id[]',

I have tried adding 'onclick' and 'action' but this are also not working.

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.