Added dropdown menu

This commit is contained in:
Pierre 2018-02-18 19:16:48 +01:00
parent cb1319f02c
commit 26bbf1043e

View File

@ -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"
});
},