Apps and development tools - Basic App Kit

AppKit Modules

<tml:include ref="tabs@base">

Since version 3.0.0

Description :

Inside a form this TML renders tab sections. Use this in combination with <tml:[tab-page@base]>.

On click on a tab an event "appkit.tab-changed" is fired with the tab id as parameter "tab".

bildschirmfoto 2014-11-01 um 01.34.33.png

Options:
Examples:

<tml:[tabs@base]>

  <tml:[tab-page@base] o_title="Hello" o_id="tab1">

    Hallo

  </tml:[tab-page@base]>

  <tml:[tab-page@base] o_title="World" o_id="tab2">

    World

  </tml:[tab-page@base]>

</tml:[tabs@base]>


<script>

  WGA.event.addListener("<tml:script expression="portlet.portletkey"/>", "appkit.tab-changed", function(e){

    console.log("tab selected", e.params.tab);

  })

</script>