-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Listview: Added option for the default list icon #5018
Conversation
Added an option for the default list icon, instead of being hard-coded to 'arrow-r'
hi @jasondscott ! @MauriceG and I already had a nice discussion about making it possible to set a default icon for listviews. See #4582. I think we should keep things simple for users and not add new options if not really necessary. So I suggest to stick to one option "icon" with the following possibilities: default = "arrow-r"
This could be done with the following additions / changes:
|
Thanks for the PR @jasondscott. Been hashing this out in IRC and I agree that the best approach would to re-use the |
Actually I was suggesting that in # 3 :) I modified my previous comment to clarify on which 3 levels the user can set the icon option. |
Hi @uGoMobi ! With the code above, it will not be possible to disable the icon at LI-level. With my first PR for this feature it will ;-) Maurice |
Yes you are right. Just noticed that while testing my code. @jasondscott is working on this now. |
Oh cool, thanks. |
ul This provides the ability for the follow cases: 1. set the option as default for all listviews using the $.mobile object 2. set (or override the default) icon with data-icon on a listview or with the option icon if that listview is created programmatically 3. override the above for a list item with data-icon on that specific list item
Moved listview icon option to the correct place alphabetically in docs.
@toddparker @uGoMobi Can I pull this into master? |
I think I'd rather wait for a week since this is a new feature and we're at RC. As soon as 1.2 final is tagged, then yes. Looking forward to this addition. |
Nice! +1 for merging after 1.2 is out. If we land this in 1.2.1 let's not forget to pick in the 1.2-stable branch :) |
Listview: Added option for the default list icon
No description provided.