Update en.md
This commit is contained in:
parent
8268b09fe3
commit
cc278a3e4b
1 changed files with 6 additions and 0 deletions
|
@ -11,11 +11,13 @@ instead, thereby overwriting the value of the attribute.
|
||||||
## Signature
|
## Signature
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
||||||
Part Part.attr(
|
Part Part.attr(
|
||||||
string name,
|
string name,
|
||||||
mixed value,
|
mixed value,
|
||||||
bool overwrite = false
|
bool overwrite = false
|
||||||
)
|
)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
<Tip compact>This method is chainable as it returns the `Part` object</Tip>
|
<Tip compact>This method is chainable as it returns the `Part` object</Tip>
|
||||||
|
@ -23,7 +25,9 @@ Part Part.attr(
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
<Example caption=" Example of the Part.attr() method">
|
<Example caption=" Example of the Part.attr() method">
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
||||||
({ Point, points, Path, paths, part }) => {
|
({ Point, points, Path, paths, part }) => {
|
||||||
|
|
||||||
cont part = {
|
cont part = {
|
||||||
|
@ -33,6 +37,8 @@ Part Part.attr(
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
</Example>
|
</Example>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue