Skip to content

Commit

Permalink
ListBox is working
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Kohlhepp committed Apr 12, 2011
1 parent 005fc04 commit 8e62227
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions source/js/classes/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,21 @@
}
});

Bundle.ListBox = new Class({
"Extends": Bundle.PopupButton,

"setupDOM": function () {
this.element.set("size", "2");

if (typeOf(this.params.label) === "string") {
this.label.set("text", this.params.label);
this.label.inject(this.container);
}
this.element.inject(this.container);
this.container.inject(this.bundle);
}
});




Expand All @@ -448,16 +463,16 @@

window.addEvent("domready", function () {

(new Bundle.PopupButton({
(new Bundle.ListBox({
"options": [
{
"value": "test1",
"text": "Erster Test"
},
{
"value": "test2"
}
} ,

{
"value": "test2"
}
],

"label": "wähle dein lieblingsteil: ",
Expand Down

0 comments on commit 8e62227

Please sign in to comment.