MessageManager Class
The MessageManager class manages messages and prompts. It is used by the AppNotificationManager class.
Methods
Name | Description | |
---|---|---|
constructor(): MessageManager | ||
Output a message and/or alert to the user. | ||
Add a message to the Message Center. | ||
Clear the message list. | ||
Displays an input field message near target element. | ||
Display a message. | ||
Dismisses current ActivityMessage and ends activity if canceled. | ||
getIconClassName(details: NotifyMessageDetailsType): string Static | Gets an icon CSS class name based on a given NotifyMessageDetailsType. | |
getIconType(details: NotifyMessageDetailsType): MessageBoxIconType Static | Gets a MessageBoxIconType based on a given NotifyMessageDetailsType. | |
getSeverity(details: NotifyMessageDetailsType): MessageSeverity Static | Gets a MessageSeverity based on a given NotifyMessageDetailsType. | |
Hides the currently displayed input field message. | ||
Output a MessageBox and wait for response from the user. | ||
Opens message center. | ||
openToolTip(htmlElement: HTMLElement, message: MessageType, location?: Readonly<WritableXAndY>, options?: ToolTipOptions): void Static | Show a tooltip window. | |
Output an activity message to the user. | ||
Output a message and/or alert to the user. | ||
outputPrompt(prompt: string): void Static | Output a prompt to the user. | |
registerAnimateOutToElement(element: | HTMLElement): void Static | Set the element where messages should be animated out to on exit. | |
Set the maximum number of cached message. | ||
setToolAssistance(instructions: undefined | ToolAssistanceInstructions): void Static | Setup tool assistance instructions for a tool. | |
Sets details for setting up an Activity message. | ||
Sets values on _OngoingActivityMessage to be referenced when displaying | ||
Update the message list. |
Properties
Name | Type | Description | |
---|---|---|---|
Manager of active messages. | |||
number | The maximum number of displayed Sticky messages. | ||
undefined | List of messages as NotifyMessageDetailsType. | ||
ActivityMessageCancelledEvent | The ActivityMessageCancelledEvent is fired when an Activity message is cancelled via | ||
ActivityMessageUpdatedEvent | The ActivityMessageUpdatedEvent is fired when an Activity message updates via outputActivityMessage(). | ||
InputFieldMessageAddedEvent | |||
InputFieldMessageRemovedEvent | |||
MessageAddedEvent | The MessageAddedEvent is fired when a message is added via outputMessage(). | ||
MessagesUpdatedEvent | The MessagesUpdatedEvent is fired when a message is added or the messages are cleared. | ||
OpenMessageCenterEvent | |||
onToolAssistanceChangedEvent StaticReadonly | ToolAssistanceChangedEvent | The ToolAssistanceChangedEvent is fired when a tool calls IModelApp.notifications.setToolAssistance(). |
Defined in
Last Updated: 20 June, 2023