add more collumn state

This commit is contained in:
j 2020-08-24 01:05:42 +02:00
parent 80597790f9
commit 800725d54c

View file

@ -13,20 +13,6 @@ pandora.ui.collection = function() {
if (view == 'list') { if (view == 'list') {
that = Ox.TableList({ that = Ox.TableList({
draggable: true,
keys: keys,
items: function(data, callback) {
pandora.api.findDocuments(Ox.extend(data, {
query: ui.findDocuments
}), callback);
return Ox.clone(data, true);
},
selected: ui.collectionSelection,
sort: ui.collectionSort.concat([
{key: 'extension', operator: '+'},
{key: 'title', operator: '+'}
]),
unique: 'id',
columns: pandora.site.documentSortKeys.filter(function(key) { columns: pandora.site.documentSortKeys.filter(function(key) {
return !key.capability return !key.capability
|| pandora.hasCapability(key.capability); || pandora.hasCapability(key.capability);
@ -54,7 +40,24 @@ pandora.ui.collection = function() {
}; };
}), }),
columnsVisible: true, columnsVisible: true,
columnsMovable: true,
columnsRemovable: true,
columnsResizable: true,
columnsVisible: true,
draggable: true,
items: function(data, callback) {
pandora.api.findDocuments(Ox.extend(data, {
query: ui.findDocuments
}), callback);
return Ox.clone(data, true);
},
scrollbarVisible: true, scrollbarVisible: true,
selected: ui.collectionSelection,
sort: ui.collectionSort.concat([
{key: 'extension', operator: '+'},
{key: 'title', operator: '+'}
]),
unique: 'id',
}) })
.bindEvent({ .bindEvent({
columnchange: function(data) { columnchange: function(data) {