undefined places are now inline
This commit is contained in:
parent
2ce6b0af9a
commit
56300ab2db
1 changed files with 1 additions and 56 deletions
|
@ -10,7 +10,6 @@ Ox.ListMap <f:Ox.Element> ListMap object
|
|||
options <o> Options object
|
||||
height <n|256> Height in px
|
||||
labels <b|false> If true, show labels
|
||||
names <a|f|null> Array or names (undefined places), or function
|
||||
places <a|f|null> Array of places, or function that returns places
|
||||
selected <a|[]> Selected places
|
||||
width <n|256> Width in px
|
||||
|
@ -27,7 +26,6 @@ Ox.ListMap = function(options, self) {
|
|||
getMatches: null,
|
||||
height: 256,
|
||||
labels: false,
|
||||
names: null,
|
||||
pageLength: 100,
|
||||
places: null,
|
||||
removePlace: null,
|
||||
|
@ -222,59 +220,6 @@ Ox.ListMap = function(options, self) {
|
|||
size: 24
|
||||
});
|
||||
|
||||
if (self.options.names) {
|
||||
|
||||
self.$listSelect = Ox.Select({
|
||||
items: [
|
||||
{id: 'places', title: 'Show Places'},
|
||||
{id: 'names', title: 'Show Names'}
|
||||
],
|
||||
max: 1,
|
||||
min: 1,
|
||||
style: 'symbol',
|
||||
title: 'set',
|
||||
type: 'image',
|
||||
value: 'places'
|
||||
})
|
||||
.css({float: 'left', margin: '4px 0 4px 4px'})
|
||||
.bindEvent({
|
||||
change: toggleList
|
||||
})
|
||||
.appendTo(self.$listToolbar);
|
||||
|
||||
self.$namesList = Ox.TextList({
|
||||
columns: [
|
||||
{
|
||||
id: 'name',
|
||||
operator: '+',
|
||||
title: 'Name',
|
||||
visible: true,
|
||||
width: 256
|
||||
},
|
||||
{
|
||||
align: 'right',
|
||||
id: 'matches',
|
||||
operator: '-',
|
||||
title: 'Matches',
|
||||
visible: true,
|
||||
width: 64,
|
||||
}
|
||||
],
|
||||
columnsVisible: true,
|
||||
items: [],
|
||||
max: 1,
|
||||
min: 0,
|
||||
scrollbarVisible: true,
|
||||
sort: [{key: 'name', operator: '+'}]
|
||||
})
|
||||
.bindEvent({
|
||||
select: function(data) {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
self.$findElement = Ox.FormElementGroup({
|
||||
elements: [
|
||||
self.$findSelect = Ox.Select({
|
||||
|
@ -297,7 +242,7 @@ Ox.ListMap = function(options, self) {
|
|||
self.$findInput = Ox.Input({
|
||||
clear: true,
|
||||
placeholder: 'Find in List',
|
||||
width: self.options.names ? 214 : 234
|
||||
width: 234
|
||||
})
|
||||
.bindEvent({
|
||||
submit: function(data) {
|
||||
|
|
Loading…
Reference in a new issue