new PropertiesManager(tag)
Properties manager (data for hits)
| Name | Type | Description |
|---|---|---|
tag |
object | Instance of the Tag used |
Methods
-
delProp(key, keepBufferParam)
-
Delete/remove a property
Name Type Description keystring Key name of the property keepBufferParamboolean optional Keep the parameter from the buffer (optional) -
delProps(keepBufferParams)
-
Delete/remove all properties
Name Type Description keepBufferParamsboolean optional Keep the parameters from the buffer (optional) -
getProp(key){string|number|undefined|null}
-
Get a property
Name Type Description keystring Key name of the property -
getProp(){object}
-
Get all properties
-
setProp(key, value, persistent)
-
Set a property (overrides if present)
Name Type Description keystring Key name of the property valuestring | number value of the property persistentboolean Persistence of property -
setProps(props, persistent)
-
Set multiple properties (overrides if present)
Name Type Description propsobject Object to be added persistentboolean Persistence of object properties
