   ###*
     Enum for template configs.
 
-    @enum {string}
+    @enum {Object}
     @export
   ###
   @TemplateConfigs =
-    'SPINNER'     : { baseClass: 'spinner', itemCount: 12 }
-    'CIRCLE'      : { baseClass: 'circle',  itemCount: 3  }
-    'BOUNCE'      : { baseClass: 'bounce',  itemCount: 2  }
-    'BAR'         : { baseClass: 'bar',     itemCount: 5  }
-    'PULSE'       : { baseClass: 'pulse'  }
-    'SQUARE'      : { baseClass: 'square' }
+    'CIRCLE'  : { baseClass: 'circle',  itemCount: 3  }
+    'SPINNER' : { baseClass: 'spinner', itemCount: 12 }
+    'BOUNCE'  : { baseClass: 'bounce',  itemCount: 2  }
+    'BAR'     : { baseClass: 'bar',     itemCount: 5  }
+    'PULSE'   : { baseClass: 'pulse'  }
+    'SQUARE'  : { baseClass: 'square' }
 
 
   ###*

    super options, data

    loaderEl = @getElement().firstChild
    { size } = @getOptions()

    goog.style.setWidth  loaderEl, size
    goog.style.setHeight loaderEl, size


  ###*

  ###
  constructor: (options = {}, data) ->

    options.type     or= spark.components.Loader.LoaderTypes.CIRCLE
    options.size      ?= 50
    options.template   = @getLoaderTemplate_ options

    @getCssClass options, 'loader'
