Skip to content

Instantly share code, notes, and snippets.

@benouat
Last active May 23, 2018 07:00
Show Gist options
  • Select an option

  • Save benouat/865d3f57e2fc04f70c0d5a4813b824f0 to your computer and use it in GitHub Desktop.

Select an option

Save benouat/865d3f57e2fc04f70c0d5a4813b824f0 to your computer and use it in GitHub Desktop.
Focused Button with Enter & Space
{
"name": "Focused Button with Enter & Space",
"description": "",
"data": {}
}
{macro main()}
{@aria:TextField {
block: true
}/}
<hr/>
{@aria:Button {
id: "first",
label: "First",
width: 100,
onclick: {
fn: "onUpdateButtonClick",
scope: this
}
}/}
{@aria:Button {
id: "second",
label: "Second",
width: 100,
onclick: {
fn: "onUpdateButtonClick",
scope: this
}
}/}
{/macro}
({
$classpath:'InstantTemplateScript',
$prototype : {
onUpdateButtonClick: function() {
alert("Button clicked!");
}
}
})
@benouat
Copy link
Copy Markdown
Author

benouat commented May 23, 2018

Created by Instant Aria Templates, viewable on http://instant.ariatemplates.com/benouat/865d3f57e2fc04f70c0d5a4813b824f0

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