-
Notifications
You must be signed in to change notification settings - Fork 7
API Reference
Rafał Grabie edited this page Jul 27, 2013
·
9 revisions
Axure Page | Masters | Dynamic panels | Button shapes and rich text panels | Image map regions
is always available within your event scripts
This always points to a scriptContext object associated with a page
var foo = scriptContext.get('bar');
var bar = foo.get('/foo/bar/baz');
var page = bar.get('/');get() accepts relative: something/relative and absolute: /an/absolute/path subpaths
var foo = scriptContext.getParent();
console.log(foo.get(scriptContext.label) === scriptContext) // trueIf scriptContext is a part of a master then it will get a reference to a closest master.
Otherwise it will get the page object.
console.log(scriptContext.path) // /master-instance-1/dynamic-panel-1/bar
var foo = scriptContext.getOwner();
console.log(foo.path) // /master-instance-1
console.log(foo.getOwner() === scriptContext.page) // true