I have below code
$this->addColumn( 'qty', [ 'header' => __('Qty'), 'type' => 'number', 'index' => 'qty', 'editor' => 'text', 'class' => 'validate-number', ] );
How to validate this field. I need to validate for only numbers allowed?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community