# ----------------------------------------------------------------------------- # Author: Alexander Kravets , # Slate Studio (http://www.slatestudio.com) # # Coding Guide: # https://github.com/thoughtbot/guides/tree/master/style/coffeescript # ----------------------------------------------------------------------------- # ----------------------------------------------------------------------------- # VIEW # # config options: # formClass - custom form class to be used # formSchema - form schema for object, autogenerated if missing # disableDelete - do not add delete button below the form # disableSave - do not add save button in header # fullsizeView — use fullsize layout in desktop mode # onViewShow - on show callback # onShowAnimation - animation method to be used on show # onCloseAnimation - animation method to be used on close # # public methods: # show(animate, callback) # destroy() # # ----------------------------------------------------------------------------- class @View constructor: (@module, @config, @closePath, @object, @title) -> @store = @config.arrayStore ? @config.objectStore @$el =$ "