blob: c5f5730d40dffb46facdde0dbf9ae88b31523f02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
}
});
|