Fix typos in the last part (change `user-list` to `user-filter` and fix action syntax)
This commit is contained in:
Liad Yosef 2021-09-12 15:43:11 +03:00 коммит произвёл GitHub
Родитель e497bfdb34
Коммит 4d0976c5d4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 14 добавлений и 14 удалений

Просмотреть файл

@ -305,18 +305,18 @@ class UserFilter {
```
```html
<user-list>
<user-filter>
<label><input type="checkbox"
data-action="change:user-list.filter"
data-targets="user-list.filters"
data-action="change:user-filter#filter"
data-targets="user-filter.filters"
data-filter="all">Show all</label>
<label><input type="checkbox"
data-action="change:user-list.filter"
data-targets="user-list.filters"
data-action="change:user-filter#filter"
data-targets="user-filter.filters"
data-filter="new">New Users</label>
<label><input type="checkbox"
data-action="change:user-list.filter"
data-targets="user-list.filters"
data-action="change:user-filter#filter"
data-targets="user-filter.filters"
data-filter="admin">Admins</label>
<!-- ... --->
</user-filter>
@ -347,17 +347,17 @@ class UserFilter {
```html
<user-filter>
<label><input type="checkbox"
data-action="change:user-list.filter"
data-target="user-list.allFilter"
data-targets="user-list.filters"
data-action="change:user-filter#filter"
data-target="user-filter.allFilter"
data-targets="user-filter.filters"
data-filter="all">Show all</label>
<label><input type="checkbox"
data-action="change:user-list.filter"
data-targets="user-list.filters"
data-action="change:user-filter#filter"
data-targets="user-filter.filters"
data-filter="new">New Users</label>
<label><input type="checkbox"
data-action="change:user-list.filter"
data-targets="user-list.filters"
data-action="change:user-filter#filter"
data-targets="user-filter.filters"
data-filter="admin">Admins</label>
<!-- ... --->
</user-filter>