|
| 1 | +<script setup> |
| 2 | +import { ButtonComponent as EjsButton } from "@syncfusion/ej2-vue-buttons"; |
| 3 | +import { ToolbarComponent as EjsToolbar, ItemsDirective as EItems, ItemDirective as EItem } from "@syncfusion/ej2-vue-navigations"; |
| 4 | +</script> |
| 5 | + |
| 6 | +<template> |
| 7 | + <div class="container_div badge-toolbar "> |
| 8 | + <ejs-toolbar id="toolbar" width="400"> |
| 9 | + <e-items> |
| 10 | + <e-item prefixIcon="e-icons e-menu"></e-item> |
| 11 | + <e-item text="Notification"></e-item> |
| 12 | + <e-item type="Separator"></e-item> |
| 13 | + <e-item prefixIcon="e-icons e-search"></e-item> |
| 14 | + <e-item :template=" 'messageTemplate'"> |
| 15 | + <template v-slot:messageTemplate> |
| 16 | + <div class="badge-block"> |
| 17 | + <div class="message icons"> |
| 18 | + <span class="e-badge e-badge-notification e-badge-overlap e-badge-primary">99</span> |
| 19 | + </div> |
| 20 | + </div> |
| 21 | + </template> |
| 22 | + </e-item> |
| 23 | + <e-item :template=" 'userTemplate'"> |
| 24 | + <template v-slot:userTemplate> |
| 25 | + <div class="badge-block"> |
| 26 | + <div class="user-profile icons"> |
| 27 | + <span class="e-badge e-badge-notification e-badge-overlap e-badge-success">10</span> |
| 28 | + </div> |
| 29 | + </div> |
| 30 | + </template> |
| 31 | + </e-item> |
| 32 | + <e-item :template=" 'loveTemplate'"> |
| 33 | + <template v-slot:loveTemplate> |
| 34 | + <div class="badge-block"> |
| 35 | + <div class="love icons"> |
| 36 | + <span class="e-badge e-badge-notification e-badge-overlap e-badge-info">43</span> |
| 37 | + </div> |
| 38 | + </div> |
| 39 | + </template> |
| 40 | + </e-item> |
| 41 | + </e-items> |
| 42 | + </ejs-toolbar> |
| 43 | + </div> |
| 44 | +<!-- <ejs-button cssClass="e-btn">Inbox |
| 45 | + <span class="e-badge e-badge-overlap e-badge-primary e-badge-dot |
| 46 | + e-badge-bottom"></span> |
| 47 | +</ejs-button> --> |
| 48 | +</template> |
| 49 | + |
| 50 | +<style> |
| 51 | +@import "../node_modules/@syncfusion/ej2-base/styles/material.css"; |
| 52 | +@import "../node_modules/@syncfusion/ej2-vue-buttons/styles/material.css"; |
| 53 | +@import "../node_modules/@syncfusion/ej2-vue-notifications/styles/material.css"; |
| 54 | +@import "../node_modules/@syncfusion/ej2-popups/styles/material.css"; |
| 55 | +@import "../node_modules/@syncfusion/ej2-vue-navigations/styles/material.css"; |
| 56 | +.e-btn |
| 57 | +{ |
| 58 | + position: relative; |
| 59 | +} |
| 60 | +.container_div.badge-toolbar { |
| 61 | + overflow: auto; |
| 62 | + display: table; |
| 63 | + margin: auto; |
| 64 | + margin-top: 117px; |
| 65 | + padding-top: 20px; |
| 66 | + padding-bottom: 20px; |
| 67 | + } |
| 68 | +
|
| 69 | + .e-icons { |
| 70 | + font-size: 20px; |
| 71 | + font-weight: bolder; |
| 72 | + } |
| 73 | +
|
| 74 | + @media only screen and (max-width: 550px) { |
| 75 | + .container_div.badge-toolbar #toolbar .header { |
| 76 | + display: none; |
| 77 | + } |
| 78 | +
|
| 79 | + .material .container_div.badge-toolbar .e-toolbar .e-toolbar-items:first-child > .e-toolbar-item:last-child { |
| 80 | + margin-right: 9px; |
| 81 | + } |
| 82 | +
|
| 83 | + .bootstrap .container_div.badge-toolbar .e-toolbar .e-toolbar-items:first-child > .e-toolbar-item:last-child { |
| 84 | + margin-right: 10px; |
| 85 | + } |
| 86 | + } |
| 87 | +
|
| 88 | + .container_div.badge-toolbar .badge-block { |
| 89 | + position: relative; |
| 90 | + display: inline-block; |
| 91 | + margin: 12px 12px 10px 10px; |
| 92 | + width: 28px; |
| 93 | + height: 20px; |
| 94 | + } |
| 95 | +
|
| 96 | + .container_div.badge-toolbar .e-toolbar-items { |
| 97 | + align-items: center; |
| 98 | + } |
| 99 | +
|
| 100 | + .header { |
| 101 | + font-size: 18px; |
| 102 | + } |
| 103 | +
|
| 104 | + .icons { |
| 105 | + width: 20px; |
| 106 | + height: 20px; |
| 107 | + display: inline-block; |
| 108 | + } |
| 109 | + /* SVG Icons */ |
| 110 | + .love { |
| 111 | + |
| 112 | + background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23a6a5a6' d='M8.532.81c3.029 0 5.932 1.668 7.468 4.521 2.139-3.97 6.922-5.644 11.008-3.726 4.289 2.012 6.177 7.212 4.218 11.617C29.273 17.614 16 31.19 16 31.19 15.916 31.137 2.727 17.614.774 13.222-1.186 8.817.703 3.617 4.993 1.605A8.299 8.299 0 0 1 8.532.81z'/%3E%3C/svg%3E") no-repeat 100% 100%; |
| 113 | + } |
| 114 | +
|
| 115 | + .message { |
| 116 | + position: relative; |
| 117 | + background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23a6a5a6' d='M0 5.126h.024l7.547 7.393 8.405 8.252 8.405-8.252 7.547-7.393H32v22.6H0zm1.902-.852h28.195l-7.048 5.929L16 16.132l-7.049-5.929z'/%3E%3C/svg%3E") no-repeat 100% 100%; |
| 118 | + } |
| 119 | +
|
| 120 | + .user-profile { |
| 121 | + position: relative; |
| 122 | + background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23a6a5a6' d='M8.772 18.363a11.978 11.978 0 0 0 7.229 2.416c2.71 0 5.214-.899 7.229-2.416 4.71.593 8.354 4.61 8.354 9.481V32H.416v-4.156c0-4.871 3.646-8.888 8.356-9.481zM16.001 0a8.727 8.727 0 1 1-.003 17.455A8.727 8.727 0 0 1 16.001 0z'/%3E%3C/svg%3E") no-repeat 100% 100%; |
| 123 | + } |
| 124 | +</style> |
0 commit comments