Protected buildRecursively constructs data attributes into key/value strings. Nested keys are joined with dashes.
An array of strings on which to append the attributes
The data attributes object
A prefix for each attribute name
Assigns a single class to the element.
this
Rest ...s: string[]A single class name
Apply an inline style using the +style+ attribute.
this
An inline style to apply to the element
Assign raw data- attributes to the element.
this
Some raw data attributes
Assigns the element's id attribute.
this
an id
Protected sanitizeSanitizes the given data-attribute key based on the rules described here: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset#:~:text=Using%20data%20attributes.-,Name%20conversion,-dash%2Dstyle%20to
a data-attribute key
Assigns one or more classes and/or an id to the element.
this
Generated using TypeDoc
SVGPolylineElement Tag