New to Kendo UI for AngularStart a free 30-day trial

MessageService

Represents a base class for a service that returns localized messages.

For more information, refer to the section on using the message service.

ts
export class CustomMessageService extends MessageService {
  public get(key: string): string {
    return this.messages[key];
  }
}

Methods

get

Returns a localized message for the supplied key.

Parameters

_key

string

The message key. For example, "kendo.grid.noRecords".

Returns

string

  • The localized message for this key or undefined if not found.

notify

Notifies the components that the messages changed.

Parameters

rtl?

boolean

(Optional) The new value for the text direction token.

In this article
Methods
Not finding the help you need?
Contact Support