 
 
   ###*
+
+    @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.
 

    @enum {Array.<string>}
  ###
  @Buttons =
    'YES'           : [ 'Yes' ]
    'NO'            : [ 'No'  ]
    'YES_NO'        : [ 'Yes', 'No' ]
    'YES_NO_CANCEL' : [ 'Yes', 'No', 'Cancel' ]


  ###*
    Css class map for preset buttons.

    @private
    @enum {string}
  ###
  @ButtonCssClasses =
    'Yes'    : 'green'
    'No'     : 'red'
    'Cancel' : 'grey'


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

    buttons.forEach (options) =>
      options.renderTo = @buttonsContainer
      button = new spark.components.Button options

      @buttons[options.title] = button

      if presetButtons.indexOf(buttons) > -1
        button.on goog.events.EventType.CLICK, =>
          @emit 'ModalButtonClicked', options.title


  ###*
