jquery - JQM grouping by category -


The grouping works fine when I tried to add some category items. After adding it, the item stops the group according to its category. Is there a way to fix this?

  $ ('.doo-listview'). ("AfterRefresh", function () {$ (".ui-lihat"). Each (function () {console.log ($ (this) .text ()); var textSplit = $ (this). Split (", _ # _"); Count Count = Values ​​[text] Span '); $ (calculation) .addClass (' ui-li-count '). Text (countValue); $ (this) .append (count);});}); $ ('Todo-listview'). Listview ({autodividers: true, autodividers selector: function (li) {var out = li.data ("category"); var ranomNumber = $ ('li [data-category =' '' + out + ''] ') . ("Refresh"), if (outside == "") {return "A table is not set"}} and {return [outside, "_ # _" + ranomNumber];}}}) .listview Speed ​​up ("afterRefresh").  

You can use. To get the count. Instead of returning an array, simply add the string ( returns out + "_ # _" + Ryanom number; )

  $ ('todo-listview') Listview ({autodividers: true, autodividersSelector: function (li) {var out = li.data ("category"); var ranomNumber = $ ('li [data-class =' ​​+ + + + ''] ') Length; If (exit == "") {return "A table is not set";} and {exit-- "_ # _" + ranomNumber;}}}) .Liveview ("Refresh"). Trigger ("afterRefresh");    

Comments