module AbstractPopover
Public Instance Methods
render()
click to toggle source
# File lib/bull/ui_core.rb, line 729 def render klass = 'inactive animated fadeOut' if params.show == 'visible' klass = 'active animated fadeIn' h = $document[params.target].height x = $document[params.target].position.x y = $document[params.target].position.y $document[params.id].offset.x = x $document[params.id].offset.y = y+h $window.after(5){params.close.call} end div(id: params.id) do div(class: 'popover ' + klass) do div(class: 'arrow-up') div(class: 'box') do div(class: 'close'){i(class: 'fa fa-times')}.on(:click){params.close.call} div(class: 'content'){content} end end end end