Merge pull request #1 from nguyricky/patch-1
Added Button shape for Sidebar
This commit is contained in:
14
index.js
14
index.js
@@ -604,6 +604,20 @@ window.Triangle = function() {
|
|||||||
return div
|
return div
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.Button = function(content = "") {
|
||||||
|
let div = document.createElement("div");
|
||||||
|
div.innerHTML = content;
|
||||||
|
div.style.color = "white";
|
||||||
|
div.style.textAlign = "center";
|
||||||
|
div.style.display = "flex";
|
||||||
|
div.style.alignItems = "center";
|
||||||
|
div.style.justifyContent = "center";
|
||||||
|
div.style.cursor = "pointer";
|
||||||
|
|
||||||
|
Registry.render(div);
|
||||||
|
return div;
|
||||||
|
}
|
||||||
|
|
||||||
/* PROTOTYPE FUNCTIONS */
|
/* PROTOTYPE FUNCTIONS */
|
||||||
|
|
||||||
Array.prototype.last = function() {
|
Array.prototype.last = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user