0

I need to add texbox in below code.

$this->addColumn(
                'qty', [
            'header' => __('Qty'),
            'type' => 'text',
            'index' => 'qty',
            'header_css_class' => 'col-id',
            'column_css_class' => 'col-id'
                ]
        );

So user can input quantity row wise

1 Answer 1

1
$this->addColumn(
                'qty[]', [
            'header' => __('Qty'),
            'type' => 'input', // Change to Input
            'index' => 'qty',
            'header_css_class' => 'col-id',
            'column_css_class' => 'col-id'
                ]
        );
1
  • Do you have document of types?
    – huykon225
    Jan 4, 2021 at 8:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.