[This documentation is preliminary and is subject to change.]
Applies to: Metro style apps only
One or more property : value pairs. Separate multiple property : value pairs with commas.
When you create an HTML control, you can set its properties using dedicated attributes. For example, to set the type, min, and max properties of an input control, you can set the type, min, and max attributes in your markup:
<input type="range" min="0" max="20" />
<!-- Not valid markup. --> <rating maxRating="10" averageRating="6" />
Instead, you use the data-win-options attribute to set a property in markup. The data-win-options attribute uses the following syntax:
To set multiple properties, you separate them with a comma:
data-win-options="property1Name: property1Value, property2Name: property2Value"
Minimum supported client
|Windows 8 Consumer Preview|
Minimum supported server
|Windows Server 8 Beta|
Build date: 2/10/2012