x-editable - adjusting the width of input field

后端 未结 6 1091
慢半拍i
慢半拍i 2021-02-12 15:27

How do you adjust the input width of the popup

it doesn\'t seem like there is any option for it in

http://vitalets.github.io/x-editable/docs.html#text

6条回答
  •  独厮守ぢ
    2021-02-12 15:35

    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'=>''),
            ),
    
        ),
    

提交回复
热议问题