开发者

JQuery Mobile - Use checkbox in split button list

开发者 https://www.devze.com 2023-02-24 11:01 出处:网络
Is it possible to use a checkbox in a split button list inste开发者_StackOverflow社区ad of the gear icon?

Is it possible to use a checkbox in a split button list inste开发者_StackOverflow社区ad of the gear icon?

http://jquerymobile.com/demos/1.0a4.1/#docs/lists/lists-split.html

Thanks


If you mean an html checkbox, naugtur's answer is correct. Otherwise if you want to use a checkbox icon on the split list to the right, just add data-icon="check" to the second "a" tag in the li.


You can now use data-split-icon="check" in the ul tag.

<ul data-role="listview" data-split-icon="check">


It sure is, but you might need to do some javascript coding for that.

If I were you, I'd try and use a count bubble and place a checkbox in it.

OR

Simply put a checkbox in the li element and style it to float:right

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号