mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-29 15:26:27 +00:00
Added dropdown menu
This commit is contained in:
parent
cb1319f02c
commit
26bbf1043e
@ -28,6 +28,7 @@ ComunicWeb.components.notifications.dropdown = {
|
|||||||
href: "#",
|
href: "#",
|
||||||
innerHTML: '<i class="fa fa-bell-o"></i>'
|
innerHTML: '<i class="fa fa-bell-o"></i>'
|
||||||
});
|
});
|
||||||
|
dropdownToggle.setAttribute("data-toggle", "dropdown");
|
||||||
|
|
||||||
//Add notification number
|
//Add notification number
|
||||||
var notificationsNumber = createElem2({
|
var notificationsNumber = createElem2({
|
||||||
@ -38,7 +39,19 @@ ComunicWeb.components.notifications.dropdown = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//Add dropdown menu
|
//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