Options
All
  • Public
  • Public/Protected
  • All
Menu

Nexconn ChatUI - v26.2.0

Index

Type Aliases

SystemChannelOpeningEvent: ChatUIEvent<"SYSTEM_CHANNEL_OPENING", ChatUIChannelModel>
LanguageDirection: "ltr" | "rtl"

Language writing direction

ChannelPanelExtension: { id: string; icon: string; filter?: any }

Channel panel extension configuration

description

Defines a custom button/feature in the channel detail panel header

example
const extension: ChannelPanelExtension = {
id: 'video-call',
icon: 'https://example.com/video-icon.svg',
filter: (model) => model.channelType === ChannelType.PRIVATE
};

Type declaration

  • id: string

    Extension ID, defined by the application

  • icon: string

    Icon URL for the extension button

  • filter?:function
    • Filter function to control which channels show this extension

      Parameters

      Returns boolean

      true to show, false to hide. Defaults to showing on all channels if not provided.

PushConfigHook: ((message: ChatUIMessageModel) => PushConfig)

Type declaration

    • Push notification configuration hook

      description

      Function to customize push notification content before sending a message

      example
      const hook: PushConfigHook = (message) => ({
      pushTitle: `New message from ${message.senderUserId}`,
      pushContent: message.content?.text || '[Message]',
      pushData: JSON.stringify({ messageId: message.messageId })
      });

      Parameters

      Returns PushConfig

      Push configuration object

CustomElementClass<T>: (new (...args: any[]) => T)

Type Parameters

  • T extends HTMLElement = HTMLElement

Type declaration

    • new (...args: any[]): T
    • Custom element class

      Parameters

      • Rest ...args: any[]

      Returns T

Variables

ChatUIEmojiLibraryID: "ChatUIEmojiLibraryID" = 'ChatUIEmojiLibraryID'

Character emoji library ID constant