Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

data-mini of controlgroup

How do I set data-mini true to a radiobutton group ?
I cant get data-mini = true in the More Properties to work as it should.
I can however set one or more of the buttons individually with the mini attribute..

As per Jquery..
data-mini true | false - Compact sized version for all items in the controlgroup

Thanks

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

data-mini of controlgroup

You can add data-mini=true via More Properties but you also need to add ui-mini class on page load:

code
$('div[dsid="mobileradiogroup1"] fieldset:first-child').addClass('ui-mini');
/code

or both on page load:
code
$('div[dsid="mobileradiogroup1"] fieldset:first-child').attr('data-mini', 'true');
$('div[dsid="mobileradiogroup1"] fieldset:first-child').addClass('ui-mini');
/code

Just adding data-mini=true with refresh:

code
$("input[type='radio']").checkboxradio("refresh");
/code

should have worked, but it doesn't. Maybe a jQuery Mobile bug.

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

data-mini of controlgroup

code$('div[dsid="mobileradiogroup1"] fieldset:first-child').addClass('ui-mini');/code

Works on Page Load Perfectly !

I Removed Tiggzi data-mini = true in the More Properties. As It had no effect with or without the above code added..

Thanks MAX !!!!!!!!!!!

Return to “Issues”