resettable-properties-behavior
Polymer behavior for resetting properties
[ This description is mirrored from README.md at github.com/danielx/resettable-properties-behavior on 2019-05-22 ]
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
.
data: {
type: Array,
resettable: true,
value: function() {
return [];
}
}
Optionally set resetGroups
to only reset a subset of resettable properties with resetPropertyGroup(group)
.
data: {
type: Array,
resettable: true,
resetGroups: ['group-name'],
value: function() {
return [];
}
}
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Dependencies
- polymer#Polymer/polymer#1 - 2
- Released
- 2017-07-19
- Maturity
- IMPORTED
- License
- MIT License
Compatibility
- Framework
- Polymer 2.0+
- Polymer 1.0+ in 0.1.1
- Browser
- Browser Independent
resettable-properties-behavior - Vaadin Add-on Directory
Polymer behavior for resetting propertiesGitHub 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