Skip to content

Instantly share code, notes, and snippets.

@jakub-g
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakub-g/9d6a483501c33055d73d to your computer and use it in GitHub Desktop.
Save jakub-g/9d6a483501c33055d73d to your computer and use it in GitHub Desktop.
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
Copy link
Author

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