1
0
Fork 0

Fix Snippet.attr() webpage URLs.

This commit is contained in:
Benjamin F 2022-07-27 11:07:12 -07:00
parent 3487947e83
commit 674112a9de

View file

@ -10,10 +10,10 @@ Snippet snippet.attr(
) )
``` ```
This `Snippet.attr()` method calls [`Attributes.add()`](./attributes#add) under the hood, This `Snippet.attr()` method calls [`Attributes.add()`](/reference/api/attributes/add) under the hood,
but returns the Snippet object. This allows you to chain different calls together. but returns the Snippet object. This allows you to chain different calls together.
If the third parameter is set to `true` it will call [`Attributes.set()`](./attributes#set) instead, If the third parameter is set to `true` it will call [`Attributes.set()`](/reference/api/attributes/set) instead,
thereby overwriting the value of the attribute. thereby overwriting the value of the attribute.
<Example part="snippet_attr"> <Example part="snippet_attr">