WinJS.Binding.dynamicObservableMixin object

Allows you to add bindable properties dynamically.

Syntax

var mixinClass = WinJS.Class.mix(myClass, WinJS.Binding.dynamicObservableMixin); 

Members

The dynamicObservableMixin object has these types of members:

  • Methods

Methods

The dynamicObservableMixin object has these methods.

Method Description
addProperty

Adds a property with change notification to this object, including a ECMAScript5 property definition.

bind

Links the specified action to the property specified in the name parameter. This function is invoked when the value of the property may have changed. It is not guaranteed that the action will be called only when a value has actually changed, nor is it guaranteed that the action will be called for every value change. The implementation of this function coalesces change notifications, such that multiple updates to a property value may result in only a single call to the specified action.

getProperty

Gets a property value by name.

notify

Notifies listeners that a property value was updated.

removeProperty

Removes a property value.

setProperty

Updates a property value and notifies any listeners.

unbind

Removes one or more listeners from the notification list for a given property.

updateProperty

Updates a property value and notifies any listeners.

 

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Binding