mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-27 03:08:51 +00:00
Added dropdown menu
This commit is contained in:
parent
cb1319f02c
commit
26bbf1043e
@ -28,6 +28,7 @@ ComunicWeb.components.notifications.dropdown = {
|
||||
href: "#",
|
||||
innerHTML: '<i class="fa fa-bell-o"></i>'
|
||||
});
|
||||
dropdownToggle.setAttribute("data-toggle", "dropdown");
|
||||
|
||||
//Add notification number
|
||||
var notificationsNumber = createElem2({
|
||||
@ -38,7 +39,19 @@ ComunicWeb.components.notifications.dropdown = {
|
||||
});
|
||||
|
||||
//Add dropdown menu
|
||||
|
||||
var dropdownMenu = createElem2({
|
||||
appendTo: dropdown,
|
||||
type: "ul",
|
||||
class: "dropdown-menu"
|
||||
});
|
||||
|
||||
//Add dropdown header
|
||||
var dropdownHeader = createElem2({
|
||||
appendTo: dropdownMenu,
|
||||
type: "li",
|
||||
class: "header",
|
||||
innerHTML: "Notifications"
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user