       @removeFromDocument()
 
 
-  @Buttons        =
-    YES           : [ 'Yes' ]
-    NO            : [ 'No'  ]
-    YES_NO        : [ 'Yes', 'No' ]
-    YES_NO_CANCEL : [ 'Yes', 'No', 'Cancel' ]
+  ###*
+    Preset buttons enum. Created buttons will emit 'ModalButtonClicked' event
+    width button value.
+
+    @export
+    @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
+  ###
   @ButtonCssClasses =
-    Yes    : 'green'
-    No     : 'red'
-    Cancel : 'grey'
+    'Yes'    : 'green'
+    'No'     : 'red'
+    'Cancel' : 'grey'



  ###*
    Modal view with overlay option for Spark Framework.

    @constructor
    @export


    if presetButtons.indexOf(buttons) > -1
      buttons.forEach (title) =>
        @buttons[title] = new spark.components.Button
          cssClass : spark.components.Modal.ButtonCssClasses[title]
          title    : title
          renderTo : @buttonsContainer
