This repository was archived by the owner on Jul 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtoolbar.tsx
More file actions
54 lines (51 loc) · 2.61 KB
/
toolbar.tsx
File metadata and controls
54 lines (51 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import { SampleBase } from '../common/sample-base';
import { ToolbarComponent } from '@syncfusion/ej2-react-navigations';
import './toolbar.css';
export class Toolbar extends SampleBase<{}, {}> {
render() {
return (
<div className='control-pane'>
<div className='control-section'>
<div className="sample_container badge-toolbar">
<ToolbarComponent id="toolbar">
<div>
<div className="header">Notification</div>
<div>
<div className="badge-block">
<div className="message icons"></div>
{/* Notification Badge */}
<span className="e-badge e-badge-primary e-badge-notification e-badge-overlap">35</span>
</div>
</div>
<div>
<div className="badge-block">
<div className="user-profile icons"></div>
{/* Notification Badge */}
<span className="e-badge e-badge-success e-badge-notification e-badge-overlap">28</span>
</div>
</div>
<div>
<div className="badge-block">
<div className="love icons"></div>
{/* Notification Badge */}
<span className="e-badge e-badge-info e-badge-notification e-badge-overlap">98</span>
</div>
</div>
</div>
</ToolbarComponent>
</div>
</div>
<div id="action-description">
<p>This sample demonstrates the integration of badges into toolbar component to display mails, requests, etc.</p>
</div>
<div id="description">
<p>The badge can be integrated into the toolbar to display the notifications of custom buttons to users. Here, SVG icons
use the target for badge elements to display notifications.
</p>
</div>
</div>
)
}
}