Directory

resettable-properties-behavior - Vaadin Add-on Directory

Polymer behavior for resetting properties resettable-properties-behavior - Vaadin Add-on Directory
**[ This description is mirrored from README.md at [github.com/danielx/resettable-properties-behavior](https://github.com//danielx/resettable-properties-behavior/blob/0.1.2/README.md) on 2019-05-22 ]** [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg?style=flat-square)](https://beta.webcomponents.org/element/danielx/resettable-properties-behavior) # ResettablePropertiesBehavior `ResettablePropertiesBehavior` lets you easily reset polymer element properties to their default values. `ResettablePropertiesBehavior` require properties that use this behavior to have a function as their value. Set `resettable` to true for properties to reset them with `resetProperties`. ```javascript data: { type: Array, resettable: true, value: function() { return []; } } ``` Optionally set `resetGroups` to only reset a subset of resettable properties with `resetPropertyGroup(group)`. ```javascript data: { type: Array, resettable: true, resetGroups: ['group-name'], value: function() { return []; } } ```
View on GitHub
GitHub Homepage
Online Demo
Issue tracker
Documentation

resettable-properties-behavior version 0.1.0
### Dependencies * polymer#Polymer/polymer#^1.4.0

resettable-properties-behavior version 0.1.1
### Dependencies * polymer#Polymer/polymer#^1.4.0

resettable-properties-behavior version 0.1.2
### Dependencies * polymer#Polymer/polymer#1 - 2