Sha256: f2e96b404cc600dafc9a7dd647b0771ecdccc6c392e1cd67dc15c9a149fb3037

Contents?: true

Size: 543 Bytes

Versions: 16

Compression:

Stored size: 543 Bytes

Contents

# Avoid using this method to create popover
# Use `tao_popover` view helper method instead

Tao.Popover.create = (attributes, content) ->
  $popover = $('''
    <tao-popover class="tao-popover">
      <div class="tao-popover-content">
      </div>
      <div class="tao-popover-arrow">
        <i class="arrow arrow-shadow"></i>
        <i class="arrow arrow-border"></i>
        <i class="arrow arrow-basic"></i>
      </div>
    </tao-popover>
  ''').attr attributes

  $popover.find('.tao-popover-content').append content
  $popover.get(0)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
tao_ui-0.3.4 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.3.3 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.3.2 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.3.1 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.3.0 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.2.10 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.2.9 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.2.8 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.2.7 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.2.6 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.2.5 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.2.4 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.2.3 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.2.2 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.2.1 lib/assets/javascripts/tao/ui/popover/create.coffee
tao_ui-0.2.0 lib/assets/javascripts/tao/ui/popover/create.coffee