         range       : loader.range    || 0.4
         speed       : loader.speed    || 1.5
         FPS         : loader.FPS      || 24
+
     @addSubView @loader, null, yes
-    @loader.$().css position : "absolute", left : 5, top : 5
+    @loader.$().css position : "absolute", left : loader.left or 5, top : loader.top or 5
     @loader.hide()
   
   showLoader:->

  triggerClick:()-> @doOnSubmit()

class KDToggleButton extends KDButtonView
  constructor:(options = {},data)->
    options = $.extend
      dataPath : null          # a JsPath String
      states   : []            # an Array of Objects in form of stateName : callback key/value pairs

          return index

  setState:(name)->

    {states} = @getOptions()
    @stateIndex = index = @getStateIndex name
    @state      = states[index]
