setAttrs
setAttrs(
el,attrs,clear):void
Defined in: vanilla-integration/src/utils.ts:36
Sets attributes of an element
Parameters
Section titled “Parameters”Element
Element to set attributes of
Record<string, any>
Attributes object
boolean = false
If true, all element attributes will be cleared
Returns
Section titled “Returns”void