Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/html/lib/onyx/source/PickerButton.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/lib/onyx/source/PickerButton.js')
-rw-r--r--html/lib/onyx/source/PickerButton.js16
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