UNPKG

@trycourier/courier-ui-inbox

Version:

Inbox components for the Courier web UI

29 lines (28 loc) 1.05 kB
import { CourierBaseElement } from '@trycourier/courier-ui-core'; import { CourierInboxThemeManager } from '../types/courier-inbox-theme-manager'; import { CourierInboxFeed } from '../types/inbox-data-set'; export declare class CourierInboxFeedButton extends CourierBaseElement { static get id(): string; private _themeSubscription; private _feeds; private _selectedFeed?; get selectedFeed(): CourierInboxFeed | undefined; private _style?; private _iconElement?; private _titleElement?; private _switchIconElement?; private _unreadBadge?; private get theme(); constructor(themeManager: CourierInboxThemeManager, feeds: CourierInboxFeed[]); private getStyles; onComponentMounted(): void; onComponentUnmounted(): void; private render; setUnreadCount(count: number): void; setFeeds(feeds: CourierInboxFeed[]): void; setSelectedFeed(feedId: string): void; private refreshTheme; private refreshSelectedFeed; private refreshSwitchIcon; private refreshUnreadBadge; }