forked from 0x2620/oxjs
in TableLists, use options.unique, not options.columns[i].unique
This commit is contained in:
parent
5da1b606eb
commit
55e2174831
5 changed files with 9 additions and 15 deletions
|
|
@ -76,14 +76,6 @@ Ox.MapEditor = function(options, self) {
|
|||
};
|
||||
|
||||
self.columns = [
|
||||
{
|
||||
addable: false, // fixme: implement
|
||||
id: 'id',
|
||||
title: 'Id',
|
||||
unique: true,
|
||||
visible: false,
|
||||
width: 32
|
||||
},
|
||||
{
|
||||
format: function(value, data) {
|
||||
return data.type
|
||||
|
|
@ -345,7 +337,8 @@ Ox.MapEditor = function(options, self) {
|
|||
pageLength: self.options.pageLength,
|
||||
scrollbarVisible: true,
|
||||
selected: self.options.selected ? [self.options.selected] : [],
|
||||
sort: self.options.sort
|
||||
sort: self.options.sort,
|
||||
unique: 'id'
|
||||
})
|
||||
.bindEvent({
|
||||
'delete': removeItem,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue