jQuery Mobile: change/switch theme on listview data-split-icon -
i have split listview (with collapsible set) in jquery mobile (jqm). can see here on jsfiddle.
i want split icon act checkbox. icon has default data-theme="c"
grey , want change data-theme
b
on click, icon color should change blue.
i tried different solutions change data-theme
, found several more or less (more less) working solution. best simple jqm code $(this).buttonmarkup({theme: 'b'});
, but, changing data theme way dont change color of icon, change color of background, can try in mentioned jsfiddle.
normaly data-theme
on split listview, affect icon, when changed way, affects icons background. want change icon, not background , cannot find way that. wrong selector or kind of bug.
what think?
add below code.
$(this).find('span.ui-btn').buttonmarkup({ theme: 'b' });
and
$(this).find('span.ui-btn').buttonmarkup({ theme: 'c' });
as span.ui-btn
holds icon , its' style.
Comments
Post a Comment