INotificationsPanelButtonComponentProps
OpenNotificationsPanelButton component props.
export interface INotificationsPanelButtonComponentProps
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
RefObject<HTMLButtonElement | null> | Ref to the button element - is required for proper alignment of the notification panel. | ||
() => void | Closes the notification panel. | ||
boolean | Indicates whether there are unread notifications. | ||
boolean | Indicates whether the notification panel is open. | ||
() => void | Opens the notification panel. | ||
() => void | Toggles the notification panel. |
Property details
INotificationsPanelButtonComponentProps.buttonRefproperty
Ref to the button element - is required for proper alignment of the notification panel.
buttonRef: RefObject<HTMLButtonElement | null>;
INotificationsPanelButtonComponentProps.closeNotificationPanelproperty
Closes the notification panel.
closeNotificationPanel: () => void;
INotificationsPanelButtonComponentProps.hasUnreadNotificationsproperty
Indicates whether there are unread notifications.
hasUnreadNotifications: boolean;
INotificationsPanelButtonComponentProps.isNotificationPanelOpenproperty
Indicates whether the notification panel is open.
isNotificationPanelOpen: boolean;
INotificationsPanelButtonComponentProps.openNotificationPanelproperty
Opens the notification panel.
openNotificationPanel: () => void;
INotificationsPanelButtonComponentProps.toggleNotificationPanelproperty
Toggles the notification panel.
toggleNotificationPanel: () => void;