Data Properties
Last updated
Was this helpful?
Last updated
Was this helpful?
Data Properties hold the state of our component and are defined with a data structure in your . Each data property is assigned a default value.
JavaScript parses your data properties. Your data properties can only store JavaScript-friendly values: strings, numerics, arrays, structs, or booleans.
Single or double quotes must surround property names.
JavaScript is a case-sensitive language, and CFML isn't. To preserve the casing of your property names, you must surround them with quotes.
Don't do this.
Data properties are visible to JavaScript. You SHOULD NOT store sensitive data in them.
You can reset individual, some, or all data properties.
You also can reset all properties EXCEPT the properties you pass.
Using the data structure, you can access data properties from within your component .
You can access data properties within your using #propertyName#.
You can reset all data properties to their original default value inside your using reset().