You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Custom Attribute documentation, it's mentioned that you can pass options to @bindable in the ES6 class decorators, like so:
@bindable({
name:'myProperty', //name of the property on the class
attribute:'my-property', //name of the attribute in HTML
changeHandler:'myPropertyChanged', //name of the method to invoke when the property changes
defaultBindingMode: bindingMode.oneWay, //default binding mode used with the .bind command
defaultValue: undefined //default value of the property, if not bound or set in HTML
})
The ES7 property decorators negate the need for the name property, but it's not explicitly stated that you can do this, which seems to work:
In the Custom Attribute documentation, it's mentioned that you can pass options to
@bindable
in the ES6 class decorators, like so:The ES7 property decorators negate the need for the
name
property, but it's not explicitly stated that you can do this, which seems to work:It might be worthwhile to add an explicit example of this.
The text was updated successfully, but these errors were encountered: