kor TürkçeGitHub

Activity

Records who made a change, what changed and when.

kor/ui/ActivitySource

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

NameTypeDescription
itemsActivityItem[]Activity entries

ActivityItem

An entry in an activity log.

Properties

NameTypeDefaultDescription
personstringPerson responsible
textstringDescription
timestringTime of the activity
iconstringIcon. When empty, shows the person's avatar
fieldstringField that changed
oldValuestringPrevious value
newValuestringNew value

Related

PersonStages