Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AT: deprecated widgets used as containers Usage of most of the widgets as "containers" (i.e. {widget}{/widget}) was deprecated. You should switch to the self-closing syntax, i.e. {widget /}
{
"name": "AT: deprecated widgets used as containers",
"description": "Usage of most of the widgets as \"containers\" (i.e. {widget}{/widget}) was deprecated. You should switch to the self-closing syntax, i.e. {widget /}",
"data": {}
}
{var counter = 0 /}
{macro main()}
{call tooltipDefinitions() /}
{call writeLinks() /}
{set counter = counter + 1 /} <br>
The main macro was executed ${counter} times.
{/macro}
{macro tooltipDefinitions()}
{@aria:Tooltip {
id: "tt1",
title: "Dialog Sample"
}}
First tooltip; counter = ${counter}
{/@aria:Tooltip}
{@aria:Tooltip {
id: "tt2",
title: "Dialog Sample",
macro : "tt2macro"
} /}
{/macro}
{macro tt2macro()}
Second tooltip; counter = ${counter}
{/macro}
{macro writeLinks()}
{@aria:Link { label : "one", tooltipId: "tt1" } /}
{@aria:Link { label : "two", tooltipId: "tt2" } /}
{/macro}
({
$classpath:'InstantTemplateScript',
$prototype : {
myMethod: function() {
}
}
})
@jakub-g

This comment has been minimized.

Copy link
Owner Author

@jakub-g jakub-g commented Oct 17, 2014

Created by Instant Aria Templates, viewable on http://instant.ariatemplates.com/jakub-g/9d6a483501c33055d73d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment