kartik-v/yii2-editable

submitButton style issue

Closed this issue · 2 comments

Hi Kartik!

I noticed that the submitButton default icon is:

$submitIcon = ArrayHelper::remove($submitOpts, 'icon', '<i class="glyphicon glyphicon-save"></i>');

from the source.
According to the documentation http://demos.krajee.com/editable#settings that should be:

<i class="glyphicon glyphicon-ok"></i> 

If I modify it by hand to the glyphicon-ok, then the style dies:
image

Regards

You are supposed to set this in submitButton property of Editable widget as mentioned in docs

'submitButton' => ['icon' => '<i class="glyphicon glyphicon-ok"></i> ']

Thanks for the answer. From one side this is my mistake; my problem is on the EditableColumn and not in the normal Editable widget.
But on the other hand, If i set what you suggested, then I get the problem I described above.

'headerOptions' => ['style'=>'text-align:center', 'class'=>'kv-align-middle'],
  'class' => 'kartik\grid\EditableColumn',
  'attribute' => 'my_attribute',
  'editableOptions' => [
    'submitButton' => ['icon' => '<i class="glyphicon glyphicon-ok"></i> '],  
    ...
  ]
]