Apps and development tools - Basic App Kit

AppKit Modules

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

Since version

Description :

Deprecated since 3.0.2. Use popup@base instead.

Utiliy module to handle custom modal popups.

To show the modal create a link with href="#<id-of-the-modal>" and attribute data-toggle="modal":

<a class="btn" href="#my-modal" data-toggle="modal">Modal</a>

Options:

id:

The uniqie id of the modal. Use this id in your link to show the modal.

title:

The title to be displayed

footer (optional):

Optional footer. Put buttons here.

body:

The body of the modal.

Examples:

<tml:include ref="modal@base" o_id="my-modal">

    <tml:option name="title">My Title ...</tml:option>

    <tml:option name="footer">The Footer</tml:option>

    This is the modal contents ...

</tml:include>


<a class="btn" href="#my-modal" data-toggle="modal">Modal</a>