The (Metadata) property allows optional text to be entered or driven into the control.
This can be used to provide information belonging to or about a control.
This allows a list of CSS (cascading style sheet) classes which can be parsed and applied to the control using the Integration Theme in DriveWorks Live.
This could, for example, apply styling to a control or group of controls dynamically in a browser.
Property Type: Static
Hierarchical Reference: ControlName.Metadata
The default value of the property can be changed by:
A rule can also be built for this property by changing the type to dynamic.
|(Metadata) Property Value||Result|
|card||Will apply the value card to the Metadata property.|
|If(DWVariableOffer=TRUE, "cardA", "cardB")||When the variable Offer is True will apply the value cardA to the Metadata property, otherwise cardB will be applied.|
Metadata is exposed in the generated HTML for controls as a data attribute on the top level element of a control.
This will always be present, even if no value is provided to the property. This will look like:
// Value <div... data-metadata="card"> // No value <div... data-metadata>
Value set in Form Designer. Static properties can be made Dynamic by double clicking the gray radio button.