visit
function Apps(props) {
return (
<div>
<SfNav />
<br />
<SfNav showNotification={true}/>
</div>
);
}
function Apps(props) {
return (
<div>
<SfNav showNotification={true} notificationList={[
{id: 1, title: "New Follower!", description: 'Ram Joshi has started following you', timestampReceived: "2 days ago", read: false},
{id: 2, title: "Richa reacted to your comment", description: 'Thanks I feel the same', timestampReceived: "5 days ago", read: true}]} />
</div>
);
}
import {Bell} from 'react-bootstrap-icons';
function Apps(props) {
return (
<div>
<SfNav showNotification={true} notificationIcon={<Bell style={{marginTop: '5px'}}/>} />
</div>
);
}
New Notification Indication
If the notification list contains an unread notification, a red badge notification indicator will be shown on the notification icon. If all the notifications are read, it is not shown.
function Apps(props) {
return (
<div>
<SfNav showNotification={true} onNotificationClicked={(value) => {alert('Clicked on notification: ' + value.title)}} />
</div>
);
}
function Apps(props) {
return (
<div>
<SfNav showNotification={true} onViewAllNotificationsClicked={() => {alert('On View All Clicked')}} />
</div>
);
}
function Apps(props) {
return (
<div>
<SfNav
showNotification={true}
onViewAllNotificationsClicked={() => {alert('On View All Clicked')}}
notificationList={[
{id: 1, title: "New Follower!", description: 'Ram Joshi has started following you', timestampReceived: "2 days ago", read: false},
{id: 2, title: "Richa reacted to your comment", description: 'Thanks I feel the same', timestampReceived: "5 days ago", read: true}]}
stylesNotificationIcon={{backgroundColor: '#ddd', color: 'black', height: '30px', width: '30px', justifyContent: 'center', borderRadius: '15px'}}
stylesNotificationUnRead={{backgroundColor: 'black'}}
stylesNotificationViewAll={{color: 'black'}}
notificationIcon={<Bell style={{marginTop: '5px'}} />} />
</div>
);
}