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
↓ 1,594 callers
Method
querySelector
(selector: string)
projects/cometchat-uikit/src/lib/components/cometchat-users/cometchat-users-auto-scroll.property.spec.ts:103
↓ 1,358 callers
Method
push
* Push a new history entry onto the undo stack * Groups entries if they occur within the groupDelay window * Clears the redo stack when a new en
projects/cometchat-uikit/src/lib/services/history-manager.class.ts:71
↓ 970 callers
Method
subscribe
(fn: (value: T) => void)
projects/cometchat-uikit/src/lib/testing/properties/base-element-properties.spec.ts:23
↓ 619 callers
Method
next
(value: T)
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/reply-event-emission.property.spec.ts:61
↓ 598 callers
Method
isVisible
* Checks if the component should be visible. * Shows when loading, has replies, or has error.
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-smart-replies/cometchat-smart-replies.component.ts:154
↓ 592 callers
Method
getAttribute
(name: string)
projects/cometchat-uikit/src/lib/components/cometchat-users/cometchat-users-auto-scroll.property.spec.ts:94
↓ 429 callers
Method
getLocalizedString
(key: string)
projects/cometchat-uikit/src/lib/components/cometchat-group-item/cometchat-group-item.component.property.spec.ts:95
↓ 333 callers
Method
emit
Emit an event
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/wavesurfer/event-emitter.ts:73
↓ 302 callers
Method
format
(text: string)
projects/cometchat-uikit/src/lib/formatters/formatter-pipeline.spec.ts:50
↓ 295 callers
Method
getUid
()
projects/cometchat-uikit/src/lib/formatters/formatter-chaining.spec.ts:26
↓ 278 callers
Method
dispatchEvent
(event: MockEvent)
projects/cometchat-uikit/src/lib/components/cometchat-message-header/cometchat-message-header-call-button-hover.property.spec.ts:84
↓ 269 callers
Method
preventDefault
()
projects/cometchat-uikit/src/lib/components/cometchat-message-header/cometchat-message-header-call-button-hover.property.spec.ts:157
↓ 268 callers
Method
getSelection
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:259
↓ 247 callers
Method
appendChild
(child: MockHTMLElement)
projects/cometchat-uikit/src/lib/components/cometchat-users/cometchat-users-auto-scroll.property.spec.ts:98
↓ 242 callers
Method
querySelectorAll
(selector: string)
projects/cometchat-uikit/src/lib/components/cometchat-message-header/cometchat-message-header-call-button-hover.property.spec.ts:116
↓ 199 callers
Method
setHTML
(html: string)
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:249
↓ 189 callers
Method
focus
(position?: boolean | 'start' | 'end' | 'all' | number)
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:252
↓ 181 callers
Method
getLocalizedString
* Translates a key to the localized string in the current language. * * @param key - The translation key to look up * @returns The translated
projects/cometchat-uikit/src/lib/resources/CometChatLocalize/cometchat-localize.ts:184
↓ 181 callers
Method
querySelector
(selector: string)
projects/cometchat-uikit/src/lib/components/cometchat-message-header/cometchat-message-header-call-button-hover.property.spec.ts:101
↓ 178 callers
Method
getContentEditable
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:245
↓ 175 callers
Function
createKeyboardEvent
(key: string, options?: KeyboardEventOptions)
projects/cometchat-uikit/src/lib/testing/accessibility-test-utils.ts:40
↓ 167 callers
Method
destroy
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:337
↓ 164 callers
Method
error
* Logs an error message if the current level permits. * @param tag - The source identifier (e.g. service or component name). * @param message -
projects/cometchat-uikit/src/lib/utils/CometChatLogger.ts:55
↓ 158 callers
Function
ensureSdkReady
()
projects/cometchat-uikit/src/lib/test-setup.ts:98
↓ 158 callers
Method
getGuid
()
projects/cometchat-uikit/src/lib/components/__tests__/active-selection.property.spec.ts:75
↓ 158 callers
Function
sdkCleanup
()
projects/cometchat-uikit/src/lib/test-setup.ts:117
↓ 144 callers
Method
transform
* Transforms a translation key to its localized string value. * * @param key - The translation key to look up * @param params - Optional para
projects/cometchat-uikit/src/lib/resources/CometChatLocalize/translate.pipe.ts:34
↓ 139 callers
Method
setAttribute
(name: string, value: string)
projects/cometchat-uikit/src/lib/components/cometchat-users/cometchat-users-auto-scroll.property.spec.ts:90
↓ 131 callers
Method
warn
* Logs a warning message if the current level permits. * @param tag - The source identifier (e.g. service or component name). * @param message -
projects/cometchat-uikit/src/lib/utils/CometChatLogger.ts:67
↓ 121 callers
Method
getId
()
projects/cometchat-uikit/src/lib/components/cometchat-conversations/cometchat-conversations-component.spec.ts:60
↓ 111 callers
Function
createEntry
* Helper: create a HistoryEntry with sensible defaults.
projects/cometchat-uikit/src/lib/services/history-manager.class.spec.ts:22
↓ 109 callers
Method
getUid
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.property.spec.ts:35
↓ 106 callers
Method
getType
()
projects/cometchat-uikit/src/lib/testing/properties/message-type-delegation-properties.spec.ts:44
↓ 105 callers
Method
parse
(text: string, streaming?: boolean)
projects/cometchat-uikit/src/lib/components/cometchat-markdown-renderer/cometchat-markdown-parser.ts:194
↓ 103 callers
Method
error
* Show an error toast * * @param text - The message text * @param options - Optional configuration (duration, showCloseButton) * @returns
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-toast/cometchat-toast.service.ts:196
↓ 98 callers
Method
clear
* Clear all history * Resets both undo and redo stacks * @see Requirements 6.1, 6.2
projects/cometchat-uikit/src/lib/services/history-manager.class.ts:195
↓ 97 callers
Method
getLocalizedString
(key: string)
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-fullscreen-viewer/cometchat-fullscreen-viewer.component.ts:277
↓ 91 callers
Method
handleKeyNavigation
* Handles keyboard navigation within a grid. * Returns the new focused index, or -1 if no navigation occurred. * * @param event - The keyboar
projects/cometchat-uikit/src/lib/services/grid-navigation.service.ts:93
↓ 91 callers
Method
setActiveUser
* Sets the active user and clears the active group (mutual exclusivity). * @param user - The user to set as active, or null to clear
projects/cometchat-uikit/src/lib/services/chat-state.service.ts:86
↓ 89 callers
Method
getUid
()
projects/cometchat-uikit/src/lib/components/cometchat-users/cometchat-users.component.property.spec.ts:40
↓ 86 callers
Method
setUser
(user: CometChat.User)
projects/cometchat-uikit/src/lib/services/message-list.service.ts:174
↓ 85 callers
Function
createKeyboardEvent
* Creates a mock KeyboardEvent for testing
projects/cometchat-uikit/src/lib/utils/keyboard-utils.spec.ts:42
↓ 85 callers
Method
toggleSelection
Toggles selection for an item (Space key behavior). @see Requirements 3.3, 5.3, 7.3, 9.3, 13.1-13.3
projects/cometchat-uikit/src/lib/services/list-selection-manager.class.ts:41
↓ 82 callers
Function
createMockUser
* Creates a mock user.
projects/cometchat-uikit/src/lib/components/cometchat-conversations/conversations.property.spec.ts:65
↓ 82 callers
Method
stopPropagation
()
projects/cometchat-uikit/src/lib/components/cometchat-message-header/cometchat-message-header-call-button-hover.property.spec.ts:153
↓ 77 callers
Function
getLocalizedString
(key: string)
projects/cometchat-uikit/src/lib/resources/CometChatLocalize/cometchat-localize.ts:376
↓ 77 callers
Method
handleSelectionChange
(item: T)
projects/cometchat-uikit/src/lib/utils/list-keyboard-handler.ts:46
↓ 76 callers
Method
getMetadata
()
projects/cometchat-uikit/src/lib/components/cometchat-conversation-item/cometchat-conversation-item.component.spec.ts:215
↓ 75 callers
Method
getGuid
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.property.spec.ts:53
↓ 73 callers
Method
getText
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:248
↓ 73 callers
Method
setActiveGroup
* Sets the active group and clears the active user (mutual exclusivity). * @param group - The group to set as active, or null to clear
projects/cometchat-uikit/src/lib/services/chat-state.service.ts:97
↓ 72 callers
Function
initAndDetect
* Triggers change detection and waits for async operations to settle.
projects/cometchat-uikit/src/lib/components/cometchat-video-bubble/cometchat-video-bubble.component.spec.ts:74
↓ 71 callers
Function
createComponent
()
projects/cometchat-uikit/src/lib/components/cometchat-conversations/cometchat-conversations-component.spec.ts:329
↓ 71 callers
Function
createComponent
* Creates a CometChatGroupMemberItemComponent instance via Object.create() * to bypass Angular's inject() context requirement. * Manually wires inpu
projects/cometchat-uikit/src/lib/components/cometchat-group-member-item/cometchat-group-member-item.component.spec.ts:272
↓ 71 callers
Method
handleKeyDown
(event: KeyboardEvent)
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:141
↓ 71 callers
Function
initAndDetect
* Triggers change detection and waits for async operations to settle.
projects/cometchat-uikit/src/lib/components/cometchat-image-bubble/cometchat-image-bubble.component.spec.ts:71
↓ 71 callers
Method
isSelected
Checks if an item is currently selected.
projects/cometchat-uikit/src/lib/services/list-selection-manager.class.ts:123
↓ 70 callers
Method
selectedCount
()
projects/cometchat-uikit/src/lib/testing/properties/selection-mode-state-properties.spec.ts:61
↓ 69 callers
Method
activate
* Activates focus trap within a container. * * When activated, Tab and Shift+Tab navigation will cycle within the * container's focusable ele
projects/cometchat-uikit/src/lib/services/focus-trap.service.ts:66
↓ 68 callers
Method
destroy
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-fullscreen-viewer/cometchat-fullscreen-viewer-body-scroll.property.spec.ts:31
↓ 68 callers
Function
initAndDetect
( fixture: ComponentFixture<CometChatMessageHeaderComponent> )
projects/cometchat-uikit/src/lib/components/cometchat-message-header/cometchat-message-header.component.spec.ts:44
↓ 67 callers
Function
createComponent
* Creates a CometChatConversationItemComponent instance via Object.create() * to bypass Angular's inject() context requirement. * Manually wires inp
projects/cometchat-uikit/src/lib/components/cometchat-conversation-item/cometchat-conversation-item.component.spec.ts:515
↓ 66 callers
Method
initialize
* Initialize the service with request builder configuration. * Ports the UsersManager constructor logic. * * @param config - Configuration ma
projects/cometchat-uikit/src/lib/services/users.service.ts:76
↓ 64 callers
Function
createComponent
* Creates a CometChatGroupItemComponent instance via Object.create() * to bypass Angular's inject() context requirement. * Manually wires inputs, ou
projects/cometchat-uikit/src/lib/components/cometchat-group-item/cometchat-group-item.component.spec.ts:259
↓ 64 callers
Function
createSampleCategories
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-emoji-keyboard/cometchat-emoji-keyboard.component.spec.ts:73
↓ 64 callers
Method
emit
(value: T)
projects/cometchat-uikit/src/lib/components/cometchat-conversations/conversations.property.spec.ts:1380
↓ 63 callers
Function
createMockAudioMessage
* Creates a mock audio message object that mimics CometChat.MediaMessage * with the given number of attachments and optional caption.
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/cometchat-audio-bubble.component.spec.ts:35
↓ 63 callers
Method
handleWebsocketMessage
* Routes an incoming WebSocket event into the processing queue. * Wraps in NgZone.run() so signal/state updates trigger OnPush CD.
projects/cometchat-uikit/src/lib/services/cometchat-ai-streaming.service.ts:110
↓ 63 callers
Function
subscribeWithOptionalCleanup
( subject: Subject<T>, callback: (data: T) => void, destroyRef?: DestroyRef )
projects/cometchat-uikit/src/lib/events/event-utils.ts:9
↓ 62 callers
Function
createMockVideoMessage
* Creates a mock video message object that mimics CometChat.MediaMessage * with the given number of attachments and optional caption.
projects/cometchat-uikit/src/lib/components/cometchat-video-bubble/cometchat-video-bubble.component.spec.ts:34
↓ 62 callers
Function
initAndDetect
* Triggers change detection and waits for async operations to settle.
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/cometchat-audio-bubble.component.spec.ts:62
↓ 61 callers
Function
createMockImageMessage
* Creates a mock image message object that mimics CometChat.MediaMessage * with the given number of attachments and optional caption.
projects/cometchat-uikit/src/lib/components/cometchat-image-bubble/cometchat-image-bubble.component.spec.ts:33
↓ 60 callers
Method
setActiveCall
* Sets the active call (ongoing or outgoing). * @param call - The active call object, or null to clear
projects/cometchat-uikit/src/lib/services/incoming-call.service.ts:110
↓ 58 callers
Method
applyBlockquote
* Apply blockquote formatting. * Exits if already in a blockquote. Removes code block first (mutual exclusivity). * @see Req 2.7
projects/cometchat-uikit/src/lib/services/format-manager.class.ts:97
↓ 58 callers
Method
applyBold
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.keydown-handler.ts:9
↓ 58 callers
Function
fetchTestUser
(uid: string)
projects/cometchat-uikit/src/lib/test-setup.ts:142
↓ 58 callers
Method
getId
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/reply-event-emission.property.spec.ts:29
↓ 58 callers
Method
sanitize
Sanitize HTML with default configuration. Results are cached. @see Requirements 13.1-13.6
projects/cometchat-uikit/src/lib/services/html-sanitizer.service.ts:59
↓ 57 callers
Method
undo
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.keydown-handler.ts:12
↓ 56 callers
Function
createSampleActions
(count = 5)
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-context-menu/cometchat-context-menu.component.spec.ts:53
↓ 55 callers
Function
createPollMessage
* Creates a mock CometChat.CustomMessage-like object with poll metadata. * Uses duck-typing to satisfy the component's message interface.
projects/cometchat-uikit/src/lib/components/cometchat-poll-bubble/cometchat-poll-bubble.component.spec.ts:34
↓ 55 callers
Method
removeEventListener
(event: string, handler: Function)
projects/cometchat-uikit/src/lib/components/cometchat-message-header/cometchat-message-header-call-button-hover.property.spec.ts:74
↓ 54 callers
Method
isLoading
Whether the paginated list is in loading state (initial load only)
projects/cometchat-uikit/src/lib/components/cometchat-search/cometchat-search-messages-list/cometchat-search-messages-list.component.ts:94
↓ 53 callers
Function
createComponent
* Creates a CometChatUserItemComponent instance via Object.create() * to bypass Angular's inject() context requirement. * Manually wires inputs, out
projects/cometchat-uikit/src/lib/components/cometchat-user-item/cometchat-user-item.component.spec.ts:252
↓ 53 callers
Function
createFakeTemplateRef
Creates a fake TemplateRef for testing — sufficient for identity/reference checks.
projects/cometchat-uikit/src/lib/services/templates.service.spec.ts:39
↓ 53 callers
Function
flushPromises
()
projects/cometchat-uikit/src/lib/testing/test-helpers.ts:61
↓ 53 callers
Method
getView
* Gets the configured view for a specific message type and bubble part. * * This method implements the priority logic for view resolution: *
projects/cometchat-uikit/src/lib/services/message-bubble-config.service.ts:192
↓ 53 callers
Method
isDestroyed
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:246
↓ 53 callers
Function
setMessageAndDetect
* Simulates ngOnChanges for the message input on the component.
projects/cometchat-uikit/src/lib/components/cometchat-collaborative-whiteboard-bubble/cometchat-collaborative-whiteboard-bubble.component.spec.ts:58
↓ 53 callers
Function
setMessageAndDetect
* Simulates ngOnChanges for the message input on the component.
projects/cometchat-uikit/src/lib/components/cometchat-collaborative-document-bubble/cometchat-collaborative-document-bubble.component.spec.ts:58
↓ 52 callers
Method
getName
()
projects/cometchat-uikit/src/lib/formatters/formatter-chaining.spec.ts:30
↓ 52 callers
Method
setErrorCallback
* Set the error callback for propagating errors to the component.
projects/cometchat-uikit/src/lib/services/users.service.ts:66
↓ 52 callers
Method
updateOption
* Updates an option value. * @param index - The index of the option to update * @param value - The new option value
projects/cometchat-uikit/src/lib/components/cometchat-create-poll/cometchat-create-poll.component.ts:190
↓ 51 callers
Function
createDocumentMessage
* Creates a mock CustomMessage with configurable metadata for collaborative * document. The component extracts URL from: * metadata["@injected"]["
projects/cometchat-uikit/src/lib/components/cometchat-collaborative-document-bubble/cometchat-collaborative-document-bubble.component.spec.ts:36
↓ 51 callers
Function
createWhiteboardMessage
* Creates a mock CustomMessage with configurable metadata for collaborative * whiteboard. The component extracts URL from: * metadata["@injected"]
projects/cometchat-uikit/src/lib/components/cometchat-collaborative-whiteboard-bubble/cometchat-collaborative-whiteboard-bubble.component.spec.ts:36
↓ 51 callers
Function
initAndDetect
* Triggers change detection and waits for async operations to settle.
projects/cometchat-uikit/src/lib/components/cometchat-file-bubble/cometchat-file-bubble.component.spec.ts:62
↓ 50 callers
Method
announce
* Announces a message to screen readers. * * Creates a visually hidden live region element if it doesn't exist, * then updates its content to
projects/cometchat-uikit/src/lib/services/live-announcer.service.ts:70
↓ 50 callers
Method
cleanup
* Full cleanup: detach listeners and reset state.
projects/cometchat-uikit/src/lib/services/users.service.ts:273
↓ 50 callers
Function
createMockUser
* Creates a mock CometChat.User with sensible defaults.
projects/cometchat-uikit/src/lib/components/cometchat-conversation-item/cometchat-conversation-item.component.spec.ts:443
↓ 50 callers
Method
getConversations
()
projects/cometchat-uikit/src/lib/services/conversations.service.ts:108
next →
1–100 of 6,248, ranked by callers