From 861de82313d466891ceb064778d42ff7e550e234 Mon Sep 17 00:00:00 2001 From: Rolux Date: Tue, 29 Jun 2010 15:22:39 +0200 Subject: [PATCH] adding menu to list demo --- demos/test/list.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/demos/test/list.js b/demos/test/list.js index df732c4..e01ba3c 100644 --- a/demos/test/list.js +++ b/demos/test/list.js @@ -4,6 +4,34 @@ $(function() { app = new Ox.App({ requestURL: "http://lion.oil21.org:8000/api/" }), + $menu = new Ox.MainMenu({ + menus: [ + { + id: "demo", + title: "Demo", + items: [ + { id: "about", title: "About" } + ] + }, + { + id: "sort", + title: "Sort", + items: [ + { id: "sort_movies", title: "Sort Movies by", items: [ + { checked: false, group: "sort_movies", id: "title", title: "Title"}, + { checked: false, group: "sort_movies", id: "director", title: "Director" }, + { checked: false, group: "sort_movies", id: "country", title: "Country" }, + { checked: true, group: "sort_movies", id: "year", title: "Year" }, + ] }, + { id: "order_movies", title: "Order Movies", items: [ + { checked: false, group: "order_movies", id: "ascending", title: "Ascending"}, + { checked: true, group: "order_movies", id: "descending", title: "Descending" }, + ] } + ] + }, + ], + size: "large" + }), $list = new Ox.TextList({ columns: [ { @@ -67,5 +95,17 @@ $(function() { operator: "-" } ] + }), + $main = Ox.SplitPanel({ + elements: [ + { + element: $menu, + size: 24 + }, + { + element: $list + } + ], + orientation: "vertical" }).appendTo($body); });