//>>built
define("mill/jssupport/jsApplication/controls/buttonControl/ButtonControl",["dojo/_base/declare","dojo/dom-class","dijit/form/Button","mill/jssupport/_TranslationMixin","mill/jssupport/base"],function(d,e,f,g,b){return mill.registerAlias("app.view.ButtonControl",d("mill.jssupport.jsApplication.controls.buttonControl.ButtonControl",[f,g],{description:null,labelIdent:null,fullWidth:null,buttonColor:null,postMixInProperties:function(){this.inherited(arguments);this.label=this.getLabel()},_setLabelIdentAttr:function(){return function(a){this.labelIdent=
a;this.set("label",this.getLabel())}}(),_setFullWidthAttr:function(a){this.fullWidth=a;(a=window.app.getControlField(this))&&a.set("fullWidth",this.fullWidth)},_setButtonColorAttr:function(a){this.buttonColor=a;e["red"===this.buttonColor?"add":"remove"](this.domNode,"dijitButtonRed")},getLabel:function(){var a=this.description||"";if(this.labelIdent)if(b.getLocalization(this.labelIdent))a=b.getLocalization(this.labelIdent);else{var c=window.app.combinedTranslationIdent(this.labelIdent);b.getLocalization(c)&&
(a=b.getLocalization(c))}return a},translate:function(){this.inherited(arguments);this.set("label",this.getLabel())}}))});