EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Bris on February 01, 2017, 12:33:01 AM



Title: Label for easyui-switchbutton does not work?
Post by: Bris on February 01, 2017, 12:33:01 AM
I have the following snippet of code in a easyui-dialog:

Code:
 
<div style="margin-bottom:10px">
                <input name="companyAdmin" class="easyui-switchbutton" id="dlg_admin" label="Admin" data-options="onText:'Til',offText:'Fra'">
            </div>

This does not show the "Admin" text in front of the switch button. Is this a bug?


Title: Re: Label for easyui-switchbutton does not work?
Post by: jarry on February 01, 2017, 05:00:21 AM
The switchbutton hasn't label property.


Title: Re: Label for easyui-switchbutton does not work?
Post by: jega on October 16, 2017, 12:16:57 AM
and why ??

I also need a label on the switchbutton


jesper