How can I add the autofocus and select on the editable gridview field?
I want to make editacle field autofocus and autoselect. Here's my gridview code :
<?php Pjax::begin(); ?>
<?= GridView::widget([
'dataProvider'=>$dataProvider,
'filterModel'=>$searchModel,
'showPageSummary'=>true,
'pjax'=>true,
'striped'=>true,
'hover'=>true,
'responsiveWrap' => false,
'panel'=>['type'=>'primary', 'heading'=>$partner_name],
'columns'=>[
[
'attribute' => 'city_code',
'label' => 'City Code',
],
[
'class'=>'kartik\grid\EditableColumn',
'editableOptions'=>[
'asPopover' => false,
'inputType'=>\kartik\editable\Editable::INPUT_TEXT,
],
'attribute'=>'amount',
'label'=>'Amount',
],
],
]);
?>
<?php Pjax::end() ; ?>