EasyUI Forum
September 14, 2025, 04:50:29 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: switchbutton readonly change style on: March 07, 2018, 05:33:11 AM
Thank you!
Now all is working properly!
2  General Category / EasyUI for jQuery / Re: switchbutton readonly change style on: March 06, 2018, 07:07:19 AM
Thank you.
But this is working only with predefined swbutton.

What about dynamically changing?
Mb require to redrawing the form?

Example:
Code:
<body>

<input class="easyui-switchbutton" value="1" name="sb" id="sb">

<div style="margin:20px 0;">
    <a href="#" class="easyui-linkbutton" onclick="$('#sb').switchbutton('options').readonly=true">On RO</a>
    <a href="#" class="easyui-linkbutton" onclick="$('#sb').switchbutton('options').readonly=false">OFF RO</a>
</div>

<style>
    .switchbutton-readonly {
        opacity: 0.5;
        filter: alpha(opacity=50);
    }
</style>
</body>

And nothing.
3  General Category / EasyUI for jQuery / [RESOLVED] switchbutton readonly change style on: March 05, 2018, 03:26:12 PM
Could you please help me and describe how can I able to change the style of switchbutton in readonly mode.

Switchbutton declared as:

<input class="easyui-switchbutton" value="1" name="hours_7" id="hours_7"
            data-options="onText:'Да',offText:'Нет'">

<style>
    .switchbutton-readonly {
        opacity: 0.5;
        filter: alpha(opacity=50);
    }
</style>

not working Sad
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!