EasyUI Forum

General Category => General Discussion => Topic started by: azizkhani on January 17, 2015, 10:04:29 AM



Title: textbox style dose not work like direction
Post by: azizkhani on January 17, 2015, 10:04:29 AM
hi
i have textbox and add style="direction:ltr,...." but dose not  work

plz help me

<input data-bind="oldPassWord"  type="password" data-options="required:true" class="easyui-textbox " style="direction: ltr" />
<input data-bind="oldPassWord"  type="password" data-options="required:true" class="easyui-textbox " dir="ltr" />




Title: Re: textbox style dose not work like direction
Post by: stworthy on January 17, 2015, 06:04:39 PM
Please move the textbox component to 'ltr' container.
Code:
	<div dir="ltr">
<input name="n1" class="easyui-textbox">
</div>


Title: Re: textbox style dose not work like direction
Post by: azizkhani on January 19, 2015, 09:03:47 AM
Please move the textbox component to 'ltr' container.
Code:
	<div dir="ltr">
<input name="n1" class="easyui-textbox">
</div>
thnaks a lot
 :o why textbox component don't add other attribute to textbox that create dynamic after render in
i think if this component add extra attribute like style and .. developer  can manager better than now for example i have data-bind attribute that i use it to bind property of object(  json )  after get from server but textbox component dotnt add this attr to new input that create dynamic ; :P :P :P :P


Title: Re: textbox style dose not work like direction
Post by: stworthy on January 19, 2015, 05:38:42 PM
Any customized properties can be defined in the 'data-options' attribute.
Code:
<input id="t1" name="n1" class="easyui-textbox" data-options="
    required: true,
    p1: 'v1',
    //...
    ">

You can call 'options' method to get your defined properties.
Code:
var opts = $('#t1').textbox('options');
console.log(opts.p1);