Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

New listview option icon - change or disable icons on listviews #4582

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions js/widgets/listview.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
splitIcon: "arrow-r",
splitTheme: "b",
inset: false,
listIcon: "",
initSelector: ":jqmData(role='listview')"
},

Expand Down Expand Up @@ -181,12 +182,12 @@ $.widget( "mobile.listview", $.mobile.widget, {

// If we're creating the element, we update it regardless
if ( create || !item.hasClass( "ui-li" ) ) {
itemTheme = item.jqmData("theme") || o.theme;
itemTheme = item.jqmData( "theme" ) || o.theme;
a = this._getChildrenByTagName( item[ 0 ], "a", "A" );
var isDivider = ( item.jqmData( "role" ) === "list-divider" );

if ( a.length && !isDivider ) {
icon = item.jqmData("icon");
icon = item.jqmData( "icon" ) || o.listIcon;

item.buttonMarkup({
wrapperEls: "div",
Expand Down