1
0
Fork 0
freesewing/markdown/dev/reference/api/attributes/render/en.md
2022-09-29 19:01:10 +02:00

374 B

title
Attributes.render()

The Attributes.render() method will render attributes as a string suitable for inclusion in an SVG tag.

Signature

string attributes.render()

Example

const attr = new Attributes()
  .set('id', 'example')
  .add('class', 'classA')
  .add('class', 'classb')

const paragraph = `<p ${attr.render()}>Hello</p>`