-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Turn off listview icons by default so no need to use data-icon="false" everywhere and override where necessary #4570
Comments
Thanks for the suggestion. Do you mind creating a pull request for this? https://github.com/jquery/jquery-mobile#pull-requests BTW - Use triple backtick (before and after) to display code. See Github Flavored Markdown. |
Sure thing as soon as I get a moment. - thanks for your help BTW - have updated accordingly. I also hope that perhaps this could expand to more than just the listview icons, I'll see when I get round to the Github Pull Request |
Hi @stevegrove, hi @uGoMobi |
@stevegrove - To separate bugs from new features I am closing this issue. It has label "feature request" for tracking and I added it here https://github.com/jquery/jquery-mobile/wiki/Feature-Requests If you need help with that PR you can still comment this issue. |
So sorry but had two major deliveries to do last week. Thanks for the heads up. Sent from my iPhone On 4 Jul 2012, at 15:58, "Jasper de Groot" reply@reply.github.com wrote:
|
No problem at all. I just wanted to check, because I would feel bad if you were working on a PR for a feature you came up with and in the meantime I merge someone else his PR. |
INITIAL POST - https://forum.jquery.com/topic/turn-off-listview-icons-by-default-so-no-need-to-use-data-icon-false-everywhere-and-override-where-necessary
JQM 1.1.0 FINAL
I did not want icons on my listview elements except where explicitly defined - basically turning the default behaviour on its head:
Within$.widget( "mobile.listview", $ .mobile.widget ) is the code to define the default icon which currently stands as shown below in refresh: function( create ) around line 4982
This obviously takes no notice of the "options.icon" flag set in step (1) for the list view and will show an icon for all
So now you can remove all those
<li data-icon="false">
statements and use<li>
instead. I don't think there are any regressions with this update, behaviour will be as current 1.1.0 if the listview option.icon flag is left undefined.The text was updated successfully, but these errors were encountered: