Sha256: b65f43b125dd4c2e188d6cbcff8b1fc4e4cef7850c4cf662363d423e52edf5a0

Contents?: true

Size: 607 Bytes

Versions: 3

Compression:

Stored size: 607 Bytes

Contents

class @PanelConfig
  constructor: (config) ->
    for key,value of config || {}
      @[key] = value
    @attachTo            ||= angular.element(document.body)
    @clickOutsideToClose ||= true
    @escapeToClose       ||= true
    @focusOnOpen         ||= false
    @zIndex              ||= 2
    @openFrom            ||= @event
    @target              ||= @event.target
    @panelClass          ||= 'md-select-menu'
  setPosition: (target,$mdPanel) ->
    @position = $mdPanel.newPanelPosition().relativeTo(target).addPanelPosition($mdPanel.xPosition.ALIGN_START, $mdPanel.yPosition.BELOW)
    return @

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
material_raingular-0.2.6.1 lib/assets/javascripts/super_classes/panel_config.coffee
material_raingular-0.2.6 lib/assets/javascripts/super_classes/panel_config.coffee
material_raingular-0.2.5 lib/assets/javascripts/super_classes/panel_config.coffee