baig / jquerymobile-editablelistview

A jQuery Mobile Plugin with an intuitive UI to add new list items and remove existing ones.
http://wasifbaig.com/jquerymobile-editablelistview/
Other
36 stars 16 forks source link

Add Header Title to Anchor Class #15

Open datavigilante opened 7 years ago

datavigilante commented 7 years ago

Hello. I love the functionality of the Editable Listview and look forward to further enhancements. I had a case where I had multiple listview instances on a single webpage and wanted to be able to make the headings different colors. I tested applying styling to different tags and it seemed that the proper place to apply styling was to a dynamically generated anchor tag that you can see in Firebug when the page is fully rendered.

Therefore, I entered some simple code that removes any spaces from the header title text (data-title) and adds it as a class to the afore mentioned anchor tag. I updated demo/index.html and demo.css to demonstrate this enhancement.

Thanks again for your hard work in creating the JQM editable Listview. David