Sha256: 3c54e198e9cea706ee057d7952aa592bd86f61999c8e9fa5ad27f1d17c01d8cf

Contents?: true

Size: 742 Bytes

Versions: 2

Compression:

Stored size: 742 Bytes

Contents

class IuguUI.PopupContainer extends IuguUI.View
  layout: "iugu-ui-popup-container"
  secondaryView: true

  defaults:
    content: null
    width: 320
    height: 480

  context: ->
    width: @options.width
    height: @options.height

  initialize: ->
    _.bindAll @
    super

    @content = new IuguUI.View
      layout: @content
      secondaryView: true

    @content_wrapper = null

  getHandler: ->
    @$('.content:first')

  getContainer: ->
    @$('.container:first')

  render: ->
    super
    unless @content_wrapper
      @content_wrapper = $(document.createElement('div'))

    @content.setElement(@content_wrapper).render()

    @getContainer().html @content_wrapper


    @

@IuguUI.PopupContainer = IuguUI.PopupContainer

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iugu-ux-0.9.0 vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-popup-container.js.coffee
iugu-ux-0.8.9 vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-popup-container.js.coffee