2016-02-03 83 views
2

您好我使用matteodem:Meteor的easy-search軟件包。現在我分塊我的成績進入size流星的塊結果輕鬆搜索

Template.UserList.helpers({ 
    users: function() { 
    all = Meteor.users.find().fetch(); 
    chunks = []; 
    size = 3; 
    while (all.length > size) { 
     chunks.push({ row: all.slice(0, size)}); 
     all = all.slice(size); 
    } 
    chunks.push({row: all}); 
    return chunks; 
    } 
}); 

組,它像一個風情萬種,但現在我想知道如何與

{{#EasySearch.Each index=playersIndex }}

做到這一點,因爲你不能拆分索引。任何人有一個想法讓EasySearch.Each與Bootstrap行一起工作?

謝謝。

+0

難道你不能僅僅通過調用你的'EasySearch.Index'來代替find調用嗎? –

回答