undefined places are now inline

This commit is contained in:
j 2012-02-01 17:29:15 +00:00
parent 2ce6b0af9a
commit 56300ab2db

View file

@ -10,7 +10,6 @@ Ox.ListMap <f:Ox.Element> ListMap object
options <o> Options object options <o> Options object
height <n|256> Height in px height <n|256> Height in px
labels <b|false> If true, show labels 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 places <a|f|null> Array of places, or function that returns places
selected <a|[]> Selected places selected <a|[]> Selected places
width <n|256> Width in px width <n|256> Width in px
@ -27,7 +26,6 @@ Ox.ListMap = function(options, self) {
getMatches: null, getMatches: null,
height: 256, height: 256,
labels: false, labels: false,
names: null,
pageLength: 100, pageLength: 100,
places: null, places: null,
removePlace: null, removePlace: null,
@ -222,59 +220,6 @@ Ox.ListMap = function(options, self) {
size: 24 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({ self.$findElement = Ox.FormElementGroup({
elements: [ elements: [
self.$findSelect = Ox.Select({ self.$findSelect = Ox.Select({
@ -297,7 +242,7 @@ Ox.ListMap = function(options, self) {
self.$findInput = Ox.Input({ self.$findInput = Ox.Input({
clear: true, clear: true,
placeholder: 'Find in List', placeholder: 'Find in List',
width: self.options.names ? 214 : 234 width: 234
}) })
.bindEvent({ .bindEvent({
submit: function(data) { submit: function(data) {