 class KDModalView extends KDView
 
   constructor:(options = {}, data)->
-
     options.overlay       ?= no            # a Boolean
     options.overlayClick  ?= yes           # a Boolean
     options.height       or= "auto"        # a Number for pixel value or a String e.g. "100px" or "20%" or "auto"

    @getDomElement().find(".kdmodal-content").html content

  display:->

    if @getOptions().fx
      @utils.defer =>
        @setClass "active"

    @setClass "fx"                                if options.fx
    @setTitle options.title                       if options.title
    @setContent options.content                   if options.content
    @addSubView options.view                      if options.view

    @on 'ModalCancelled', options.cancel          if options.cancel

