egonzalez
Posts: 0
Joined: Fri Sep 14, 2012 9:34 pm

Does Tiggzi support List Autodividers?

This is the info from the JQM documentation but I can't seem to get it to work.

http://jquerymobile.com/test/docs/lis...

Autodividers
A listview can be configured to automatically generate dividers for its items. This is done by adding a data-autodividers="true" attribute to any listview.

By default, the text used to create dividers is the uppercased first letter of the item's text. Alternatively you can specify divider text by setting the autodividersSelector option on the listview programmatically. For example, to add a custom selector to the element with id="mylistview":

$("#mylistview").listview({
autodividers: true,

// the selector function is passed a element from the listview;
// it should return the appropriate divider text for that
// element as a string
autodividersSelector: function ( li ) {
var out = /* generate a string based on the content of li */;
return out;
}
});
Note that if you are using formatted list items that contain a floating element (for example ui-li-aside), this element precedes its siblings regardless of the order in your HTML markup. This results in the first character of the floating element being used as divider text. Therefore it is recommended to specify the divider text in this case.

If new list items are added to the list or removed from it, the dividers are not automatically updated: you should call refresh() on the listview to redraw the autodividers.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Does Tiggzi support List Autodividers?

Hello! You can select list item and check a Divider option (in MobileListItem properties)

egonzalez
Posts: 0
Joined: Fri Sep 14, 2012 9:34 pm

Does Tiggzi support List Autodividers?

Hi Marina, I've been able to create the dividers but what I am interested in creating are AutoDividers that take a value and add it to the divider dynamically based on the values in the list. Something similar to this.
Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Does Tiggzi support List Autodividers?

Hello! It will be possible with JQM 1.2 http://jquerymobile.com/blog/2012/08/..., but now Tiggzi uses JQM 1.1

Agon Bina
Posts: 0
Joined: Thu Oct 04, 2012 5:01 am

Does Tiggzi support List Autodividers?

Hi, have you switched to JQM 1.2 yet? I need to use the new popup and the autodividers too. Best!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Does Tiggzi support List Autodividers?

Hello! Not yet, but already working on it. Not sure when it will be available. I'll update about the date.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Does Tiggzi support List Autodividers?

JQM and PhoneGap updates will be available in the end of November.

Agon Bina
Posts: 0
Joined: Thu Oct 04, 2012 5:01 am

Does Tiggzi support List Autodividers?

Thanks,

Return to “Issues”