-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Command registerNormalization
Ryc O'Chet edited this page Feb 1, 2018
·
1 revision
- NOTE: This documentation is for Velocity v2.
Normalizations are registered via the "registerNormalization"
command. This takes a property name, and a callback which takes the element and an optional value as arguments. If the value is undefined, then this is a get action, otherwise it is a set action. In addition, if the set action returns a false-ey value then it will automatically set the css style of the same propertyName to the same value (so return true
to skip this).