Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: baa67345be
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (26 sloc) 0.906 kb
{
# Element adds a DOM element to the layout from a variety of sources.
#
# Defaults
# ========
:id => :element # The ID asigned to your element
# :transition => {
# :in => :show, # These options take arrays for simultaneous effects
# :out => :hide # :fade_in, :fade_out, :slide_from_top, :slide_to_top, :slide_from_bottom, :slide_to_bottom
# }
#
# Options
# =======
# :close => '.close', # CSS selector for a link to hide the element
# :show => true, # Show on instanciation?
#
# Inject from
# ===========
# :element => '#id', # Selector or DOM element
# :url => '/action', # URL to pull and render HTML from
# :template => '#id', # Selector or DOM textarea element (JST)
#
# Inject to
# =========
# :inject => '#id' # Selector or DOM element (default: document.body)
}
Jump to Line
Something went wrong with that request. Please try again.