EasyUI Forum
May 02, 2024, 09:19:56 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: textbox style dose not work like direction  (Read 7805 times)
azizkhani
Newbie
*
Posts: 37


View Profile Email
« 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" />


Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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>
Logged
azizkhani
Newbie
*
Posts: 37


View Profile Email
« Reply #2 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
 Shocked 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 ; Tongue Tongue Tongue Tongue
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 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);
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!