1.0.0 • Published 3 years ago

domstuff v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

domstuff

example of usage

addNewListener

this function makes you add a new listener to an element in your DOM.

addNewListener("#edit-btn", "click", function () {
  editTask(task, taskTitle);
});

createDomEle

createDomEle(
  `#${taskTitle}`,
  "div",
  { class: ["class-1", "class-2"], id: "id" }, // id or any attribute
  "this is the text content of the div"
);