 
 
   ###*
+
+    @export
+  ###
+
+
+  ###*
+    Preset button options.
+
+    @private
+  ###
+  @ButtonOptions =
+    YES    : { title: 'Yes',    cssClass: 'small green' }
+    NO     : { title: 'No',     cssClass: 'small red'   }
+    CANCEL : { title: 'Cancel', cssClass: 'small grey'  }
+
+
+  ###*
     Preset buttons enum. Created buttons will emit 'ModalButtonClicked' event
     width button value.
 


    presetButtons = goog.object.getValues spark.components.Modal.Buttons

    if presetButtons.indexOf(buttons) > -1
      buttons.forEach (title) =>
        @buttons[title] = new spark.components.Button
          cssClass : spark.components.Modal.ButtonCssClasses[title]
          title    : title
          renderTo : @buttonsContainer
          callback : => @emit 'ModalButtonClicked', title
    else
      buttons.forEach (options) =>
        options.renderTo = @buttonsContainer
        @buttons[options.title] = new spark.components.Button options


  ###*

    @enum {Array.<string>}
  ###
  @Buttons =
    'YES'           : [ spark.components.Modal.ButtonOptions.YES ]
    'NO'            : [ spark.components.Modal.ButtonOptions.NO  ]
    'YES_NO'        : [
      spark.components.Modal.ButtonOptions.NO
      spark.components.Modal.ButtonOptions.YES
    ]
    'YES_NO_CANCEL' : [
      spark.components.Modal.ButtonOptions.NO
      spark.components.Modal.ButtonOptions.CANCEL
      spark.components.Modal.ButtonOptions.YES
    ]
