EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aswzen on June 21, 2016, 08:13:50 PM



Title: How to add placeholder on datagrid textbox editor
Post by: aswzen on June 21, 2016, 08:13:50 PM
Already tried with
Code:
<th data-options="field:'ITEM_REMARKS',editor:'textbox',prompt:'Maximum 30 chars'" width="250px">Remarks</th>
and
Code:
<th data-options="field:'ITEM_REMARKS',editor:'textbox',placeholder:'Maximum 30 chars'" width="250px">Remarks</th>

But none of them works

Thank you in advance


Title: Re: How to add placeholder on datagrid textbox editor
Post by: hjzhbb7758 on June 22, 2016, 12:14:32 AM
prompt

editor:{
    type:'textbox',
    options:{
        required:true,
        prompt:'enter value'
    }
}


Title: Re: How to add placeholder on datagrid textbox editor
Post by: hjzhbb7758 on June 22, 2016, 12:18:59 AM
look this


Title: Re: How to add placeholder on datagrid textbox editor
Post by: hjzhbb7758 on June 22, 2016, 12:19:59 AM
倒霉孩子,这你都不会,难道不看api么?


Title: Re: How to add placeholder on datagrid textbox editor
Post by: aswzen on June 22, 2016, 01:48:18 AM
wow thank you chinese man :)

its worked very well