Page 1 of 1

Does Tiggzi support List Autodividers?

Posted: Thu Oct 25, 2012 1:49 pm
by egonzalez

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.


Does Tiggzi support List Autodividers?

Posted: Thu Oct 25, 2012 3:25 pm
by Maryna Brodina

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


Does Tiggzi support List Autodividers?

Posted: Thu Oct 25, 2012 3:48 pm
by egonzalez

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


Does Tiggzi support List Autodividers?

Posted: Fri Oct 26, 2012 7:54 am
by Maryna Brodina

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


Does Tiggzi support List Autodividers?

Posted: Wed Nov 07, 2012 6:35 am
by Agon Bina

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


Does Tiggzi support List Autodividers?

Posted: Wed Nov 07, 2012 9:12 am
by Maryna Brodina

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


Does Tiggzi support List Autodividers?

Posted: Wed Nov 07, 2012 4:01 pm
by Maryna Brodina

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


Does Tiggzi support List Autodividers?

Posted: Wed Nov 07, 2012 5:46 pm
by Agon Bina

Thanks,