onchange event

Rating.change event

[This documentation is preliminary and is subject to change.]

Applies to: Metro style apps only

Raised when the user commits a change to the userRating.

Syntax


<div data-win-control="WinJS.UI.Rating" data-win-options="{onchange : handler}">
</div>


function handler(eventInfo) { /* Your code */ }
rating.addEventListener("change", handler);
rating.removeEventListener("change", handler);


Event handler parameters

eventInfo

Type: CustomEvent

An object that contains information about the event. This object contains additional properties that provide more information about the event:

tentativeRating

The new userRating.

Requirements

Minimum supported client

Windows 8 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Namespace

WinJS.UI

Library

Ui.js

See also

Rating

 

 

Build date: 2/10/2012

Ajouts de la communauté

AJOUTER
Afficher:
© 2017 Microsoft