Client Property Template: Difference between revisions
MrPancakers (talk | contribs) m (Added clientside category onto the bottom) |
mNo edit summary |
||
| Line 5: | Line 5: | ||
== Syntax == | == Syntax == | ||
< | <pre> | ||
example.prop = str; | example.prop = str; | ||
</ | </pre> | ||
=== Attribute Types === | === Attribute Types === | ||
| Line 17: | Line 17: | ||
This is a basic explanation about what does the example below do. | This is a basic explanation about what does the example below do. | ||
< | {{ClientsideCode| | ||
<pre> | |||
//Getter Type | //Getter Type | ||
let val = example.prop; | let val = example.prop; | ||
| Line 23: | Line 24: | ||
//Setter Type | //Setter Type | ||
example.prop = "Example String"; | example.prop = "Example String"; | ||
</ | </pre> | ||
}} | |||
== See Also == | == See Also == | ||
Latest revision as of 14:09, 26 October 2018
Client-Side
This is an example description for a client-side property template.
Syntax
example.prop = str;
Attribute Types
- Getter: Explanation of getter type, output should be in string type.
- Setter: Explanation of setter type, input should be in string type.
Examples
This is a basic explanation about what does the example below do.
Client-Side
//Getter Type let val = example.prop; //Setter Type example.prop = "Example String";