Interface: SnippetNotificationsProps
SnippetNotifications.SnippetNotificationsProps
Hierarchy
-
CardProps
↳
SnippetNotificationsProps
Indexable
▪ [p: string
]: any
Any other properties
Properties
ScrollContainerProps
• Optional
ScrollContainerProps: Record
<string
, any
>
Props to spread to ScrollContainer component This lib use 'react-custom-scrollbars' component to perform scrollbars For more info: https://github.com/malte-wessel/react-custom-scrollbars/blob/master/docs/API.md
Default
{}
Defined in
packages/react-ui/src/components/SnippetNotifications/SnippetNotifications.tsx:101
className
• Optional
className: string
Overrides or extends the styles applied to the component.
Default
null
Overrides
CardProps.className
Defined in
packages/react-ui/src/components/SnippetNotifications/SnippetNotifications.tsx:70
handleCustomNotification
• Optional
handleCustomNotification: (data
: any
) => Element
Type declaration
▸ (data
): Element
Handle custom notification
Parameters
Name | Type |
---|---|
data | any |
Returns
Element
Defined in
packages/react-ui/src/components/SnippetNotifications/SnippetNotifications.tsx:76
handleNotification
• Optional
handleNotification: (type
: any
, data
: any
, content
: any
) => Element
Type declaration
▸ (type
, data
, content
): Element
Handle single notification Override content
Parameters
Name | Type |
---|---|
type | any |
data | any |
content | any |
Returns
Element
Defined in
packages/react-ui/src/components/SnippetNotifications/SnippetNotifications.tsx:82
id
• Optional
id: string
Id of the UserNotification
Default
notification_<notificationObject.sid>
Overrides
CardProps.id
Defined in
packages/react-ui/src/components/SnippetNotifications/SnippetNotifications.tsx:64
key
• Optional
key: number
The obj key
Overrides
CardProps.key
Defined in
packages/react-ui/src/components/SnippetNotifications/SnippetNotifications.tsx:93
onFetchNotifications
• Optional
onFetchNotifications: (data
: any
) => void
Type declaration
▸ (data
): void
Callback on fetch notifications
Parameters
Name | Type |
---|---|
data | any |
Returns
void
Default
null;
Defined in
packages/react-ui/src/components/SnippetNotifications/SnippetNotifications.tsx:113
onNotificationClick
• Optional
onNotificationClick: (event
: any
, notification
: any
) => void
Type declaration
▸ (event
, notification
): void
Callback when click on single notification
Parameters
Name | Type |
---|---|
event | any |
notification | any |
Returns
void
Defined in
packages/react-ui/src/components/SnippetNotifications/SnippetNotifications.tsx:107
showMax
• Optional
showMax: number
The max n of results shown
Default
20
Defined in
packages/react-ui/src/components/SnippetNotifications/SnippetNotifications.tsx:88