Merge pull request #1256 from BenjaminNeilDavis/issue-1246-index-frozen-repeater

Adding a Frozen Column repeater to index page
This commit is contained in:
Stephen James
2015-04-22 16:54:13 -04:00
3 changed files with 33 additions and 4 deletions

View File

@@ -45,4 +45,8 @@
.example-pill-class {
font-style: italic;
font-weight: bold;
}
#myRepeater[data-currentview="list.frozen"] table thead tr th, #myRepeater[data-currentview="list.frozen"] .repeater-list-heading {
width: 400px;
}

View File

@@ -1127,11 +1127,14 @@
</div>
<div class="btn-group repeater-views" data-toggle="buttons">
<label class="btn btn-default active">
<input name="repeaterViews" type="radio" value="list"><span class="glyphicon glyphicon-list"></span>
<input name="repeaterViews" type="radio" value="list.list"><span class="glyphicon glyphicon-list"></span>
</label>
<label class="btn btn-default">
<input name="repeaterViews" type="radio" value="thumbnail"><span class="glyphicon glyphicon-th"></span>
</label>
<label class="btn btn-default">
<input name="repeaterViews" type="radio" value="list.frozen"><span class="glyphicon glyphicon-list"></span>
</label>
</div>
</div>
</div>

View File

@@ -582,11 +582,32 @@ define(function (require) {
thumbnail(options, callback);
}
},
list_selectable: 'multi',
list_noItemsHTML: 'no items found',
thumbnail_noItemsHTML: 'no items found',
thumbnail_infiniteScroll: {
hybrid: true
views: {
'list.list': {
dataSource: function (options, callback) {
list(options, callback);
},
list_selectable: 'multi'
},
'thumbnail': {
dataSource: function (options, callback) {
thumbnail(options, callback);
},
thumbnail_infiniteScroll: {
hybrid: true
}
},
'list.frozen': {
dataSource: function (options, callback) {
list(options, callback);
},
list_columnSizing:false,
list_columnSyncing: false,
list_selectable: false, // (single | multi)
list_frozenColumns: 1
}
}
});
}
@@ -609,6 +630,7 @@ define(function (require) {
});
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SCHEDULER
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */