x可编辑-调整输入字段的宽度 [英] x-editable - adjusting the width of input field
本文介绍了x可编辑-调整输入字段的宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何调整弹出窗口的输入宽度
How do you adjust the input width of the popup
在
http://vitalets.github.io/x-editable/docs.html#text
推荐答案
我们可以在选项数组中使用tpl
we can use tpl inside array of options
array(
'class'=>'editable.EditableColumn',
'name'=>'url',
'value'=>'getFullUrl("/").$data->url',
'id'=>'menu_id',
'headerHtmlOptions'=>array('text-align: center;'),
'htmlOptions'=>array(''),
'editable'=>array(
'apply'=>true,
'name' => 'url',
'url'=>$this->createUrl('menuItems/XUpdate'),
'placement'=>'right',
'options'=> array('tpl'=>'<input type="text" style="width: 500px">'),
),
),
这篇关于x可编辑-调整输入字段的宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文