update countries example

This commit is contained in:
rolux 2012-06-29 14:19:54 +02:00
parent 64a182ae1d
commit a4e06c5f77

View file

@ -1,3 +1,8 @@
/*
In this example, we will build a list of countries that can be displayed in grid
or list view.
*/
'use strict'; 'use strict';
Ox.load(['Geo', 'UI'], function() { Ox.load(['Geo', 'UI'], function() {
@ -14,7 +19,6 @@ Ox.load(['Geo', 'UI'], function() {
id: 'code', id: 'code',
operator: '+', operator: '+',
title: 'Code', title: 'Code',
unique: true,
visible: true, visible: true,
width: 64 width: 64
}, },
@ -300,6 +304,7 @@ Ox.load(['Geo', 'UI'], function() {
max: 1, max: 1,
pageLength: 1000, pageLength: 1000,
query: query, query: query,
selectAsYouType: 'name',
selected: ui.selected, selected: ui.selected,
size: 128, size: 128,
sort: Ox.clone(ui.sort, true), sort: Ox.clone(ui.sort, true),
@ -318,9 +323,11 @@ Ox.load(['Geo', 'UI'], function() {
max: 1, max: 1,
pageLength: 1000, pageLength: 1000,
query: query, query: query,
selectAsYouType: 'name',
scrollbarVisible: true, scrollbarVisible: true,
selected: ui.selected, selected: ui.selected,
sort: Ox.clone(ui.sort, true) sort: Ox.clone(ui.sort, true),
unique: 'code'
}) })
.bindEvent({ .bindEvent({
init: init, init: init,