x-editable - adjusting the width of input field

后端 未结 6 986
天涯浪人
天涯浪人 2021-02-12 14:50

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:46

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

提交回复
热议问题