Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7cadf62045
Fetching contributors…

Cannot retrieve contributors at this time

file 47 lines (36 sloc) 1.4 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
[

{title, "Tabs Element"},

{see_also, [base]},

{usage, "
#tabs{
tag=tabsTag,
options=[
{collapsible, true},
{selected, 2},
{event, mouseover}
],
tabs=[
#tab{ tag=tabTag, title=\"Tab 1\", body=[\"Tab one body...\"] },
  #tab{ title=\"Tab 2\", body=#panel{ body=[\"Tab two body...\"] }},
  #tab{ title=#span{ text=\"<Tab 3>\" },
url=\"some/path/to-tab-data\",
body=\"This body will be replaced by data from ajax call to above url.\" }
  ]}
"},

{description, "The tabs element produces an jQuery UI tabs pane."},

{attributes, [

{"tag", "Erlang term", "Tag used in event postbacks. Note: no events will be sent if tag is omitted."},
{"options", "list", "To Be Written. See jQuery UI docs: http://jqueryui.com/demos/tabs/"},
{"tabs", "list of tab elements", "Each tab should have a title and a body. If url is present, then the body is loaded from that url with ajax."}
]},

{events, [

{"tabs_event(Type, TabsTag, TabTag, TabIndex)", "
  Called when a tab is selected, loaded, enabled, disabled, added, removed or shown.<br>
The Event provided is a tuple with event kind and the tag of the tabs pane.

<p>
Type is one of: tabsselect, tabsload, tabsshow, tabsadd, tabsremove, tabsenable, tabsdisable.<br>
Tag is the attribute provided for the tabs and tab elements respectively.
The event will not be triggered if the tabs tag is undefined.

"}
]}

].
Something went wrong with that request. Please try again.