
About the the commandfor attribute.
What I want to share here is my experiences with the commandfor attribute. Short intro: I'm using it in my moduleEditor , where I'm working on. This is a fully OOP based package and this means that all the HTML elements are programmatically created and directly appended to the DOM . Note: The development itself I do on my localhost and when the time is right I push an updated version to GitHub. At present: I'm working on the development of my 'ol/ul/li' module and as this elements have a lot of options to be implemented. I'm working on a popupable toolbox to cater that. For this I'm making use of the commandfor/command and popover attributes and the command event. (This attributes here are passed to button elements and a target element.) Explanation: For the creation of those buttons, I'm using a predefined function and in this function I have this rule: create_elem.commandForElement = command_for; This function I use within another function and this function contains this rule and cre
Continue reading on Dev.to Webdev
Opens in a new tab



