Hi, is it possible to have a menu button / drop down button of some sort in the toolbar (see image for example in Office 365)?
We have seen the example at https://blazor.syncfusion.com/demos/menu-bar/toolbar-integration?theme=bootstrap5 however it changes the Toolbar height, and sometimes we just want an icon, similar to the image below. We have also tried Split Button, but it does not look like the other ToolBarItems.
Please advise. Many thanks.
Thanks for the reply. The example you provided looks perfect, however we use bootstrap5 and bootstrap5-dark themes, and with theme themes the button does not blend with the rest of the toolbar. Please see images below.
Please advise. Thanks
Material (this looks great)
Bootstrap5 (this does not look like normal toolbar items)
Bootstrap5-dark (this does not look like normal toolbar items)
|
<style>
.e-toolbar { background: #fafafa; border: 1px none rgba(0,0,0,0.12); } .e-btn.e-dropdown-btn { background-color: #fafafa; border-color: transparent; color: rgba(0,0,0,0.87); } .e-toolbar .e-toolbar-items { background: #fafafa; } .e-dropdown-popup { background-color: #fff; color: rgba(0,0,0,0.87); } .e-dropdown-popup ul { border: none; border-radius: 0; box-shadow: 0 5px 5px -3px rgb(0 0 0 / 20%), 0 8px 10px 1px rgb(0 0 0 / 14%), 0 3px 14px 2px rgb(0 0 0 / 12%); box-sizing: border-box; font-size: 14px; font-weight: normal; list-style-image: none; list-style-position: outside; list-style-type: none; margin: 0; min-width: 120px; overflow: hidden; padding: 8px 0; -webkit-user-select: none; -ms-user-select: none; user-select: none; white-space: nowrap; } .e-dropdown-popup ul .e-item:active, .e-dropdown-popup ul .e-item.e-selected { background-color: #bdbdbd; color: rgba(0,0,0,0.87); } .e-dropdown-popup ul .e-item:hover { background-color: #e0e0e0; color: rgba(0,0,0,0.87); } .e-dropdown-btn:hover, .e-dropdown-btn.e-btn:hover { box-shadow: none; } .e-dropdown-btn:active, .e-dropdown-btn.e-btn:active { box-shadow: 0 5px 5px -3px rgb(0 0 0 / 20%), 0 8px 10px 1px rgb(0 0 0 / 14%), 0 3px 14px 2px rgb(0 0 0 / 12%); } .e-dropdown-btn:focus, .e-dropdown-btn.e-btn:focus { box-shadow: none; } .e-dropdown-btn.e-btn:hover { background-color: rgba(226,226,226,0.9844); border-color: transparent; color: rgba(0,0,0,0.87); } .e-dropdown-btn.e-btn:hover, .e-dropdown-btn.e-btn:focus { text-decoration: none; } </style> |
That works great for bootstrap5. Do you have the equivalent for bootstrap5-dark please?
Thanks
|
.e-btn.e-dropdown-btn {
background-color: transparent;
border-color: transparent;
}
.e-dropdown-btn:active, .e-dropdown-btn.e-btn:active,
.e-dropdown-btn:focus, .e-dropdown-btn.e-btn:focus {
box-shadow: none;
}
.e-dropdown-popup ul .e-item:active, .e-dropdown-popup ul .e-item.e-selected {
background-color: #bdbdbd;
color: rgba(0,0,0,0.87);
} |
HI, thanks for the update.
We are getting the following issues:
Please advise, thanks
|
.e-toolbar .e-tbar-btn:hover,
.e-dropdown-btn.e-btn:hover { background-color: rgba(226,226,226,0.9844); border-color: transparent; color: rgba(0,0,0,0.87); } .e-toolbar .e-tbar-btn:hover .e-icons, .e-toolbar .e-tbar-btn:hover .e-tbar-btn-text {
color: rgba(0,0,0,0.87); } |
|
.e-toolbar .e-tbar-btn:focus {
background: #282d31; box-shadow: none; border: none; } .e-toolbar .e-tbar-btn:focus .e-tbar-btn-text { color: #fff; padding: 4px; } .e-toolbar .e-tbar-btn:focus .e-icons.e-btn-icon { color: #adb5bd; } |
To enable Toolbars in Outlook 365 follow this steps-
Hi @Satheesh Kumar Balasubramanian
this information is really helpful.
However, it would be even more helpful to have this in an online demo.
Perhaps you could consider integrate it in the SfToo
Regards
Sven
Hi Sven,
We have considered your requirement to include the provided details in our online demo and it will be included in any of our upcoming release.
Regards,
Venkatesh