Activity
Records who made a change, what changed and when.
When to use
- Add a readable history to a record with several contributors.
Examples
One entry
Loading the example
<k:Activity>
<k:ActivityItem person="Elif Aydın" text="created the order" time="09:20"/>
</k:Activity>Changes to a shipment
Supply a localized display string for time. Activity preserves the order of the entries supplied by the application.
Loading the example
<k:Activity items="{path: '/changes', templateShareable: false}">
<k:ActivityItem person="{person}" text="{text}" time="{time}" icon="{icon}" field="{field}" oldValue="{from}" newValue="{to}"/>
</k:Activity>API
Aggregations
| Name | Type | Description |
|---|---|---|
items | ActivityItem[] | Activity entries |
ActivityItem
An entry in an activity log.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
person | string | Person responsible | |
text | string | Description | |
time | string | Time of the activity | |
icon | string | Icon. When empty, shows the person's avatar | |
field | string | Field that changed | |
oldValue | string | Previous value | |
newValue | string | New value |