kor TürkçeGitHub

MessageList

Groups messages by severity and can focus the field connected to an entry.

kor/ui/MessageListSource

When to use

  • Collect validation results from several fields in one place.

Examples

A short message list

Loading the example

<k:MessageList press=".onSelect">
	<k:MessageItem state="Error" title="Postcode required"/>
	<k:MessageItem state="Information" title="Pickup also available"/>
</k:MessageList>

Jump to the invalid field

Select the message to focus the input. Set target to the field’s full UI5 ID.

Loading the example

<k:Stack gap="10">
	<k:MessageList press=".onSelect">
		<k:MessageItem id="postcodeMessage" state="Error" title="Postcode missing" text="Complete the dispatch address."/>
	</k:MessageList>
	<k:TextField id="postcode" label="Postcode" error="Enter the postcode."/>
</k:Stack>

API

Aggregations

NameTypeDescription
itemsMessageItem[]Message entries

Events

NameTypeDescription
pressitem: kor.ui.MessageItemA message was pressed. Its target, if available, has received focus

MessageItem

An entry in a message list.

Properties

NameTypeDefaultDescription
statestringinfoSeverity or UI5 message type
titlestringHeading
textstringDescription
targetstringID of the corresponding field

Related

MessageForm