UNPKG

tiny-essentials

Version:

Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.

23 lines (18 loc) 623 B
### ✨ New Features & Improvements * **TinyHtml.setAttr** Now supports setting **multiple attributes at once**. ```js TinyHtml.setAttr(el, { id: 'main', class: 'box highlight', title: 'Example' }); ``` * **TinyHtml.addProp / removeProp / toggleProp** These methods now accept **multiple property names** in a single call. ```js TinyHtml.addProp(el, 'hidden', 'draggable', 'spellcheck'); TinyHtml.removeProp(el, 'hidden', 'draggable'); TinyHtml.toggleProp(el, ['checked', 'disabled']); ``` **Full Changelog**: https://github.com/JasminDreasond/Tiny-Essentials/compare/1.21.9...1.21.10