Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cometchat/cometchat-uikit-angular
/ functions
Functions
6,248 in github.com/cometchat/cometchat-uikit-angular
⨍
Functions
6,248
◇
Types & classes
1,314
↓ 50 callers
Method
reset
* Reset the formatter state to initial values. * * Clears original text, formatted text, metadata, and detected URLs.
projects/cometchat-uikit/src/lib/formatters/cometchat-url-formatter.ts:150
↓ 49 callers
Method
setSessionID
Sets the current call session ID. @see Requirement 1.6
projects/cometchat-uikit/src/lib/services/ongoing-call.service.ts:32
↓ 48 callers
Method
announce
(key: string)
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-media-recorder/cometchat-media-recorder.component.ts:238
↓ 48 callers
Method
isActive
Check if a specific format is currently active at the cursor position.
projects/cometchat-uikit/src/lib/services/format-manager.class.ts:153
↓ 48 callers
Function
selectAll
* Helper: select all text content inside the element.
projects/cometchat-uikit/src/lib/services/format-manager.class.spec.ts:45
↓ 48 callers
Method
setCurrentLanguage
* Sets the current language and reinitializes with the new language. * * @param language - The language code to set * * @example * Come
projects/cometchat-uikit/src/lib/resources/CometChatLocalize/cometchat-localize.ts:223
↓ 47 callers
Function
createMockConversation
* Creates a mock CometChat.Conversation with a user or group.
projects/cometchat-uikit/src/lib/components/cometchat-conversation-item/cometchat-conversation-item.component.spec.ts:490
↓ 47 callers
Function
createMockMessage
( opts: { text?: string; type?: string; senderName?: string; deletedAt?: number; } = {} )
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-message-preview/cometchat-message-preview.component.spec.ts:67
↓ 47 callers
Method
getSender
()
projects/cometchat-uikit/src/lib/components/cometchat-conversations/cometchat-conversations-component.spec.ts:69
↓ 47 callers
Method
getStatus
()
projects/cometchat-uikit/src/lib/utils/CallLogUtils.ts:21
↓ 47 callers
Function
initAndDetect
Triggers async init and runs change detection.
projects/cometchat-uikit/src/lib/components/cometchat-message-bubble/cometchat-message-bubble.component.spec.ts:145
↓ 47 callers
Function
mockGroup
Creates a Group with the given guid, owner UID, and logged-in user scope
projects/cometchat-uikit/src/lib/utils/GroupMemberUtils.spec.ts:33
↓ 46 callers
Function
createFakeTemplateRef
Creates a fake TemplateRef for testing — sufficient for identity/reference checks.
projects/cometchat-uikit/src/lib/services/message-bubble-config.service.spec.ts:38
↓ 46 callers
Function
createMockReaction
(emoji: string, uid: string, name: string)
projects/cometchat-uikit/src/lib/components/cometchat-reaction-list/cometchat-reaction-list.component.spec.ts:221
↓ 46 callers
Function
getNextIndex
( currentIndex: number, direction: NavigationDirection, totalItems: number, options?: GetNextIndexOpti
projects/cometchat-uikit/src/lib/utils/keyboard-utils.ts:85
↓ 46 callers
Function
mockGroupMember
Creates a GroupMember with the given uid, scope, and optional name
projects/cometchat-uikit/src/lib/utils/GroupMemberUtils.spec.ts:24
↓ 46 callers
Method
openDialog
* Opens a dialog with focus management. * * Sets ARIA attributes, activates focus trap, and handles Escape key. * * @param config - Config
projects/cometchat-uikit/src/lib/services/dialog-focus-manager.service.ts:71
↓ 45 callers
Function
makeTextMessage
(id: number, text: string, sentAt = 1700000000)
projects/cometchat-uikit/src/lib/components/cometchat-ai-assistant-chat-history/cometchat-ai-assistant-chat-history.component.spec.ts:11
↓ 44 callers
Function
createTextMessage
Creates a real CometChat.TextMessage (local only, not sent).
projects/cometchat-uikit/src/lib/components/cometchat-message-bubble/cometchat-message-bubble.component.spec.ts:84
↓ 44 callers
Function
createTextMessage
(text: string, senderUid = 'superhero1')
projects/cometchat-uikit/src/lib/components/cometchat-message-information/cometchat-message-information.component.spec.ts:46
↓ 44 callers
Function
initAndDetect
( fixture: ComponentFixture<CometChatMessageComposerComponent> )
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.component.spec.ts:39
↓ 44 callers
Function
setupComponent
(inputs: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/components/cometchat-ai-assistant-chat-history/cometchat-ai-assistant-chat-history.component.spec.ts:66
↓ 43 callers
Function
createCallMessage
* Creates a minimal mock call message object that satisfies the component's * expected CometChat.Call interface. Real SDK Call objects require an act
projects/cometchat-uikit/src/lib/components/cometchat-call-bubble/cometchat-call-bubble.component.spec.ts:31
↓ 43 callers
Function
createMockFileMessage
* Creates a mock file message object that mimics CometChat.MediaMessage * with the given number of attachments and optional caption.
projects/cometchat-uikit/src/lib/components/cometchat-file-bubble/cometchat-file-bubble.component.spec.ts:35
↓ 43 callers
Function
getButton
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-button/cometchat-button.component.spec.ts:45
↓ 43 callers
Method
getHTML
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:247
↓ 42 callers
Method
addEventListener
(event: string, handler: Function)
projects/cometchat-uikit/src/lib/components/cometchat-message-header/cometchat-message-header-call-button-hover.property.spec.ts:67
↓ 42 callers
Method
getElement
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:244
↓ 41 callers
Method
handleCharacter
* Handles a character input for type-ahead search. * Returns the index of the matching item, or -1 if no match. * * Characters are collected
projects/cometchat-uikit/src/lib/services/type-ahead.service.ts:67
↓ 41 callers
Function
setupComponent
(inputs: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/components/cometchat-ai-assistant-chat/cometchat-ai-assistant-chat.component.spec.ts:62
↓ 41 callers
Method
show
* Show a toast notification with custom configuration * * @param config - Toast configuration options * @returns The ID of the created toast
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-toast/cometchat-toast.service.ts:97
↓ 40 callers
Function
createMockGroup
* Creates a mock CometChat.Group with sensible defaults.
projects/cometchat-uikit/src/lib/components/cometchat-group-item/cometchat-group-item.component.spec.ts:235
↓ 39 callers
Method
applyCodeBlock
* Apply code block formatting (<pre>). * Exits if already in a code block. Removes blockquote first (mutual exclusivity). * @see Req 2.6
projects/cometchat-uikit/src/lib/services/format-manager.class.ts:77
↓ 39 callers
Function
createMockMember
* Creates a mock CometChat.GroupMember with sensible defaults.
projects/cometchat-uikit/src/lib/components/cometchat-group-member-item/cometchat-group-member-item.component.spec.ts:248
↓ 39 callers
Function
delay
(ms: number)
projects/cometchat-uikit/src/lib/testing/accessibility-test-utils.ts:204
↓ 38 callers
Method
addEventListener
(target: EventTarget, type: string, listener: EventListener)
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:130
↓ 38 callers
Function
createComponent
* Creates a CometChatReactionsComponent instance via Object.create() * to bypass Angular's inject() context requirement. * Manually wires dependenci
projects/cometchat-uikit/src/lib/components/cometchat-reactions/cometchat-reactions.component.spec.ts:193
↓ 38 callers
Method
openPopover
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-popover/cometchat-popover.component.ts:117
↓ 37 callers
Function
createMockCall
(overrides: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/events/CometChatCallEvents.spec.ts:35
↓ 37 callers
Function
createMockUser
(uid: string, name?: string)
projects/cometchat-uikit/src/lib/components/cometchat-call-buttons/cometchat-call-buttons.component.spec.ts:205
↓ 37 callers
Method
deactivate
* Deactivates focus trap and optionally restores focus. * * Removes the keydown listener and restores focus to the element * that was focused
projects/cometchat-uikit/src/lib/services/focus-trap.service.ts:139
↓ 37 callers
Method
destroy
()
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/wavesurfer/timer.ts:32
↓ 37 callers
Method
setGroup
(group: CometChat.Group)
projects/cometchat-uikit/src/lib/components/cometchat-message-list/cometchat-message-list.event-handlers.ts:78
↓ 36 callers
Function
createMockCall
* Creates a mock CometChat.Call object for testing. * We use mock calls because real SDK call creation requires an active call session * which i
projects/cometchat-uikit/src/lib/services/incoming-call.service.spec.ts:61
↓ 36 callers
Function
createMockMessage
* Helper to create a mock message with given attachments
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/cometchat-audio-bubble.property.spec.ts:75
↓ 36 callers
Function
getLastAudioInstance
()
projects/cometchat-uikit/src/lib/resources/CometChatSoundManager/CometChatSoundManager.spec.ts:45
↓ 36 callers
Function
initAndDetect
( fixture: ComponentFixture<CometChatThreadViewComponent> )
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-thread-view/cometchat-thread-view.component.spec.ts:36
↓ 36 callers
Function
initAndDetect
(fixture: ComponentFixture<CometChatCallLogsComponent>)
projects/cometchat-uikit/src/lib/components/cometchat-call-logs/cometchat-call-logs.component.spec.ts:139
↓ 36 callers
Function
stripRichTextFormatting
(text: string)
projects/cometchat-uikit/src/lib/utils/util.ts:101
↓ 35 callers
Method
applyItalic
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.keydown-handler.ts:10
↓ 35 callers
Method
getActiveCount
* Get the count of active toasts * * @returns The number of active toasts
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-toast/cometchat-toast.service.ts:239
↓ 35 callers
Method
getLoggedInUser
()
projects/cometchat-uikit/src/lib/cometchat-uikit.ts:74
↓ 35 callers
Method
getLoggedinUser
()
projects/cometchat-uikit/src/lib/cometchat-uikit.ts:247
↓ 35 callers
Method
getName
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.property.spec.ts:39
↓ 35 callers
Method
isEmpty
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:251
↓ 34 callers
Method
ID
* Generates a unique identifier string. * The ID is composed of: * - 'cc_' prefix for CometChat identification * - Current timestamp in milli
projects/cometchat-uikit/src/lib/CometChatUIKitUtility.ts:21
↓ 33 callers
Method
addMessage
(message: CometChat.BaseMessage)
projects/cometchat-uikit/src/lib/services/message-list.listeners.ts:25
↓ 33 callers
Function
createMockTemplateRef
* Creates a mock TemplateRef for testing purposes. * Each mock has a unique identifier to verify round-trip equality.
projects/cometchat-uikit/src/lib/services/templates.service.property.spec.ts:37
↓ 33 callers
Function
fetchTestGroup
(guid: string)
projects/cometchat-uikit/src/lib/test-setup.ts:156
↓ 33 callers
Method
getMentions
()
projects/cometchat-uikit/src/lib/formatters/cometchat-mentions-formatter.ts:173
↓ 33 callers
Method
getUid
()
projects/cometchat-uikit/src/lib/components/cometchat-call-logs/cometchat-call-logs.stories.ts:40
↓ 33 callers
Function
initAndDetect
( fixture: ComponentFixture<CometChatGroupMembersComponent> )
projects/cometchat-uikit/src/lib/components/cometchat-group-members/cometchat-group-members.component.spec.ts:41
↓ 33 callers
Function
log
(message, color = colors.reset)
scripts/storybook-performance.js:28
↓ 33 callers
Method
setIncomingCall
* Sets the current incoming call. * @param call - The incoming call object, or null to clear
projects/cometchat-uikit/src/lib/services/incoming-call.service.ts:102
↓ 33 callers
Function
setInputValue
Sets an input value and dispatches the input event so the component picks it up
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-link-dialog/cometchat-link-dialog.component.spec.ts:86
↓ 33 callers
Method
setLimit
(limit: number)
projects/cometchat-uikit/src/lib/services/call-logs.service.spec.ts:39
↓ 33 callers
Function
setMessageAndDetect
* Simulates ngOnChanges for the message input on the component.
projects/cometchat-uikit/src/lib/components/cometchat-sticker-bubble/cometchat-sticker-bubble.component.spec.ts:48
↓ 32 callers
Function
createMockGroup
(overrides: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/events/CometChatGroupEvents.spec.ts:48
↓ 32 callers
Function
createMockUser
(overrides: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/events/CometChatUserEvents.spec.ts:37
↓ 32 callers
Function
createTextMessage
* Creates a real CometChat.TextMessage for testing. * Uses the SDK constructor so the object has all real methods.
projects/cometchat-uikit/src/lib/components/cometchat-thread-header/cometchat-thread-header.component.spec.ts:50
↓ 32 callers
Method
fetchConversations
(builder?: CometChat.ConversationsRequestBuilder)
projects/cometchat-uikit/src/lib/services/conversations.service.ts:110
↓ 31 callers
Method
clone
* Creates a deep clone of the given object, preserving prototype chain and * property descriptors. Functions are copied by reference. * * Mir
projects/cometchat-uikit/src/lib/CometChatUIKitUtility.ts:35
↓ 31 callers
Function
createMockUser
* Creates a mock CometChat.User with sensible defaults.
projects/cometchat-uikit/src/lib/components/cometchat-user-item/cometchat-user-item.component.spec.ts:232
↓ 31 callers
Method
errorMessage
Error message from localization
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-confirm-dialog/cometchat-confirm-dialog.component.ts:96
↓ 31 callers
Method
formatSdkMentions
( text: string, mentionedUsers: (CometChat.User | CometChat.GroupMember)[] = [] )
projects/cometchat-uikit/src/lib/formatters/cometchat-mentions-formatter.ts:108
↓ 31 callers
Method
getTextWithMentionFormat
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:318
↓ 31 callers
Method
isStreamingFor
Returns a stable callable+Observable for the given chatId's streaming state.
projects/cometchat-uikit/src/lib/services/cometchat-ai-streaming.service.ts:71
↓ 31 callers
Function
makeKeyEvent
(key: string, opts: Partial<KeyboardEventInit> = {})
projects/cometchat-uikit/src/lib/services/grid-navigation.service.spec.ts:163
↓ 31 callers
Method
ngOnInit
()
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/cometchat-audio-bubble.component.ts:113
↓ 31 callers
Method
setCursorPosition
(position: 'start' | 'end' | number)
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:257
↓ 30 callers
Method
applyUnderline
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.keydown-handler.ts:11
↓ 30 callers
Function
createMockCallLog
( overrides: { sessionId?: string; type?: string; status?: string; initiatorUid?: string;
projects/cometchat-uikit/src/lib/components/cometchat-call-logs/cometchat-call-logs.component.spec.ts:102
↓ 30 callers
Function
createMockMessage
* Creates a mock message.
projects/cometchat-uikit/src/lib/components/cometchat-conversations/conversations.property.spec.ts:89
↓ 30 callers
Function
createMockUser
( overrides?: Partial<{ uid: string; name: string; avatar: string; status: string; role:
projects/cometchat-uikit/src/lib/testing/mock-sdk-user.ts:28
↓ 30 callers
Function
getActionItems
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-action-sheet/cometchat-action-sheet.component.spec.ts:75
↓ 30 callers
Method
getAudioState
(index: number)
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/cometchat-audio-bubble.component.ts:170
↓ 30 callers
Method
getConversationTemplates
Gets the current conversation templates synchronously.
projects/cometchat-uikit/src/lib/services/templates.service.ts:197
↓ 30 callers
Method
handleMenuClick
(event?: Event)
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-context-menu/cometchat-context-menu.component.ts:200
↓ 30 callers
Function
makeEvent
( type: string, messageId: string, extra: Record<string, unknown> = {} )
projects/cometchat-uikit/src/lib/services/cometchat-ai-streaming.service.spec.ts:13
↓ 30 callers
Method
redo
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.keydown-handler.ts:13
↓ 30 callers
Method
remove
* Remove a toast by ID * * @param id - The ID of the toast to remove
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-toast/cometchat-toast.service.ts:147
↓ 30 callers
Method
setActiveUser
(user: MockUser | null)
projects/cometchat-uikit/src/lib/components/__tests__/active-selection.property.spec.ts:143
↓ 29 callers
Method
build
()
projects/cometchat-uikit/src/lib/services/call-logs.service.spec.ts:51
↓ 29 callers
Function
createComponent
* Creates a CometChatCreatePollComponent instance via Object.create() * to bypass Angular's inject() context requirement. * Manually wires signals,
projects/cometchat-uikit/src/lib/components/cometchat-create-poll/cometchat-create-poll.component.spec.ts:161
↓ 29 callers
Function
createMockBaseMessage
(overrides: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/events/CometChatMessageEvents.spec.ts:41
↓ 29 callers
Function
createMockIMessages
(overrides: Partial<IMessages> = {})
projects/cometchat-uikit/src/lib/events/CometChatMessageEvents.spec.ts:53
↓ 29 callers
Method
endCall
Ends the current call and cleans up the session. @see Requirements 1.4, 1.5, 11.3
projects/cometchat-uikit/src/lib/services/ongoing-call.service.ts:202
↓ 29 callers
Function
expectAriaAttribute
( element: HTMLElement, attribute: string, expectedValue: string | null )
projects/cometchat-uikit/src/lib/testing/accessibility-test-utils.ts:152
↓ 29 callers
Function
initAndDetect
( fixture: ComponentFixture<CometChatMessageListComponent> )
projects/cometchat-uikit/src/lib/components/cometchat-message-list/cometchat-message-list.component.spec.ts:40
↓ 29 callers
Method
messageToReplySignal
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/message-composer-extensions.integration.spec.ts:260
← previous
next →
101–200 of 6,248, ranked by callers