Basic Definitions
- Wire definitions
Listed below are basic concepts utilized by wires.
- Wire attributes
Attributes are values that are applied to wire tags. Each wire tag has a different list of available attributes.
- Wire properties
Object properties are attributes with the ability to be updated or read from within a wire. Datasource and template object properties can also be assigned.
- Wire object properties
An object property is an object attribute that has the ability to be updated or read from within a wire. Known object properties can be queried via an [object:] token or assigned via an <assign> action tag. Several object tags have a distinct set of properties that can be accessed, many of which will affect the on screen representation of the object.
- Wire event types
Wire events must contain the type attribute. This attribute defines the event that you want to run.
- Wire import
You can import snippets of another wire file into your wire file that you are creating or editing. This enables the re-use of wire code snippets across multiple wires, which can save time.
- Object alias
Alias is a global attribute you can place on any object within the wire. Once the attribute of alias is added, the value of the alias becomes the “nickname” of the object it is placed on. This nickname or alias can now be used to call the object from within an action.
- Object paths
The pathing of actions and responses within a wire is a fundamental concept that will allow the creation of not only basic 1:1 actions taking place on a specific object, but will allow for the creation of generic and reusable actions which create compact and cleaner wire code.
- Object states
Object States allow a method to programmatically detect an active status on a touched or targeted object within the wire.
- Object variables
Object variables can be created on the fly and attached to any object simply by adding an underscore to the beginning of any object tag parameter. Object variables can only be passed to an action.
- User preferences
A preference's token functions in the same way that a variable does with the only difference being that a preference is stored within the wire for later use. Preferences will be maintained as long as the wire is installed on a device.
- Wire evaluations
[eval:] or [js:] is used to evaluate expressions using an internal JavaScript engine. You can create evaluations ranging from simple addition and subtraction to executing complex functions through JavaScript.
- Wire parameters
A [param:] token can be used within an any class or datasource to specify a placeholder for a value that will be defined at some point during the wire's execution. The value of the [param:] is passed in by either invoking the datasource, or instantiating a class.
- Wire variables
Variables are a great way to call a selection, operation or current state within a wire. Variables can be reused and are global to the wire, but are not stored in the system as a preference.
Loading...
There was a problem loading this topic