{"size": 989, "ext": "js", "max_stars_repo_path": "source/utilities/AresPickerButton.js", "max_stars_repo_name": "enyojs/ares-project", "max_stars_repo_stars_event_min_datetime": "2015-01-28T15:06:17.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-28T08:09:49.000Z", "max_issues_repo_path": "source/utilities/AresPickerButton.js", "max_issues_repo_name": "micro-tech/Ares-m", "max_issues_repo_issues_event_min_datetime": "2015-02-11T00:55:06.000Z", "max_issues_repo_issues_event_max_datetime": "2015-02-11T00:55:06.000Z", "max_forks_repo_path": "source/utilities/AresPickerButton.js", "max_forks_repo_name": "micro-tech/Ares-m", "max_forks_repo_forks_event_min_datetime": "2015-04-22T03:01:04.000Z", "max_forks_repo_forks_event_max_datetime": "2019-04-26T05:27:20.000Z"}
{"max_stars_count": 19, "max_issues_count": 1, "max_forks_count": 10, "avg_line_length": 31.9032258065, "max_line_length": 92, "alphanum_fraction": 0.7290192113}
/**
	_Ares.PickerButton_  is a button that, when tapped, shows an
	[onyx.Picker](#onyx.Picker). Once an item is selected, the list of items
	closes, but the item stays selected and the PickerButton displays the choice
	that was made.

	Ares.PickerButton inherits from Onyx.Picker and adds the display of  an arrow in the button

	For more information, see the documentation on
	[Pickers](building-apps/controls/pickers.html) in the Enyo Developer Guide.
 */
enyo.kind({
	name: "Ares.PickerButton",
	kind: "onyx.PickerButton",
	classes :"ares-picker enyo-border-box",
	components: [
		{name:"pickerValue", classes: "ares-picker-value enyo-border-box"},
		{name: "arrowContainer", classes: "ares-picker-arrow enyo-border-box"}
	],
	handlers: {
		onChange: "change"
	},
	change: function(inSender, inEvent) {
		if (inEvent.content !== undefined){
			this.$.pickerValue.setContent(inEvent.content);
		}
	},
	setPickerContent: function(content){
		this.$.pickerValue.setContent(content);
	}
});