diff options
author | Lionel LASKE <llaske@c2s.fr> | 2012-08-25 20:23:36 (GMT) |
---|---|---|
committer | Lionel LASKE <llaske@c2s.fr> | 2012-08-25 20:23:36 (GMT) |
commit | ca3ad6305ec0655ad8475a12ac2228b61cdd9ba0 (patch) | |
tree | 7ef2b853640f99807fba7fd3f2a28bda81727297 /html/lib/onyx/source/PickerButton.js |
Init commit
Diffstat (limited to 'html/lib/onyx/source/PickerButton.js')
-rw-r--r-- | html/lib/onyx/source/PickerButton.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/html/lib/onyx/source/PickerButton.js b/html/lib/onyx/source/PickerButton.js new file mode 100644 index 0000000..c5f5730 --- /dev/null +++ b/html/lib/onyx/source/PickerButton.js @@ -0,0 +1,16 @@ +/** + _onyx.PickerButton_ is a button that, when tapped, shows an + <a href="#onyx.Picker">onyx.Picker</a>. Once an item is selected, the list + of items closes, but the item stays selected and the PickerButton displays + the choice that was made. + */ +enyo.kind({ + name: "onyx.PickerButton", + kind: "onyx.Button", + handlers: { + onChange: "change" + }, + change: function(inSender, inEvent) { + this.setContent(inEvent.content); + } +});
\ No newline at end of file |