minor
This commit is contained in:
parent
e22e971664
commit
3dbe87aa1e
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ It provides convenient methods for search parameters:
|
|||
- **`append(name, value)`** -- add the parameter,
|
||||
- **`delete(name)`** -- remove the parameter,
|
||||
- **`get(name)`** -- get the parameter,
|
||||
- **`getAll(name)`** -- get all parameters with that name,
|
||||
- **`getAll(name)`** -- get all parameters with that name (if many, e.g. `?user=John&user=Pete`),
|
||||
- **`has(name)`** -- check for the existance of the parameter,
|
||||
- **`set(name, value)`** -- set/replace the parameter,
|
||||
- **`sort()`** -- sort parameters by name, rarely needed,
|
||||
|
|
|
@ -420,7 +420,7 @@ The process of rendering slotted elements inside their slots is called "composit
|
|||
Composition does not really move nodes, from JavaScript point of view the DOM is still same.
|
||||
|
||||
JavaScript can access slots using methods:
|
||||
- `slot.assignedNodes/Elements()` -- returns nodes/elements inside the `slot`
|
||||
- `slot.assignedNodes/Elements()` -- returns nodes/elements inside the `slot`.
|
||||
- `node.assignedSlot` -- the reverse meethod, returns slot by a node.
|
||||
|
||||
If we'd like to know what we're showing, we can track slot contents using:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue