Log
Listens to events and uses the element’s HTML as a template for appending event data to an elected element. Data props are included using square bracket syntax like [[prop]].
DRAFT! This element is in early development and is liable to change or possibly be replaced.
- class
- Log
- extends
- Template
- tag
<log-blam>
Props
| name | type | default | description |
|---|---|---|---|
| mode | string | “events” | By default, the element listens for events and templates event data. All data includes name (of the attribute/prop or event type), id (the |
| additive | boolean | false | Whether to log cumulatively or to just log the most recent data. |
| max | number | 16 | The number of times data is logged before clearing the |
| places | number | 1 | For numeric data, the number of (fixed) decimal places. Set to |
| to | string | null | A selector for the element to which templated data will be appended. If not set ( |
| for | string | “blam any” | By default, ListenWatch-based elements listen for |
| from | string | A CSS selector representing all elements from which events will be listened to. If not set, the node array defaults to the element’s |
|
| prop | string | null | The property (which may be a method or map to an |
| bypass | boolean | false | Whether to stop responding to events as they happen. |
| chance | boolean | 1 | The probability that the |
Examples
OH FUN! There are currently no examples using Log.