Skip to content

Commit 450803f

Browse files
committed
doc: updated to address Issue #49
1 parent a802d0e commit 450803f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ In addition to keyboard navigation, the `<roundup-classhelper>` component can be
9393
<th i18n:translate="">Nosy List</th>
9494
<td>
9595
<span tal:replace="structure context/nosy/field" />
96-
<roundup-classhelper searchWith="username,phone,roles[]">
96+
<roundup-classhelper data-search-with="username,phone,roles[]">
9797
<span tal:condition="context/is_edit_ok" tal:replace="structure
9898
python:db.user.classhelp('username,realname,address', property='nosy', width='600')" />
9999
</roundup-classhelper>
@@ -102,24 +102,24 @@ In addition to keyboard navigation, the `<roundup-classhelper>` component can be
102102
```
103103

104104
#### Setting Attributes
105-
* Set the `searchWith` attribute to specify the fields that can be used for searching (e.g., `searchWith="title,status,keyword"`).
105+
* Set the `data-search-with` attribute to specify the fields that can be used for searching (e.g., `data-search-with="title,status,keyword"`).
106106

107107
* Optionally, customize the search parameters using the following syntax:
108108
* `"status[]"`: Displays a dropdown for the "status" field, showing all possible values.
109109
```html
110-
<roundup-classhelper searchWith="title,status[], keyword[]">
110+
<roundup-classhelper data-search-with="title,status[], keyword[]">
111111
<span tal:condition="context/is_edit_ok" tal:replace="structure python:db.issue.classhelp('id,title', property='superseder', pagesize=100)" />
112112
</roundup-classhelper>
113113
```
114114
* `"keyword[]+name"`: Sorts the "keyword" dropdown in ascending order by name.
115115
```html
116-
<roundup-classhelper searchWith="title,status[],keyword[]+name">
116+
<roundup-classhelper data-search-with="title,status[],keyword[]+name">
117117
<span tal:condition="context/is_edit_ok" tal:replace="structure python:db.issue.classhelp('id,title', property='superseder', pagesize=100)" />
118118
</roundup-classhelper>
119119
```
120120
* `"keyword[]-name"`: Sorts the "keyword" dropdown in descending order by name.
121121
```html
122-
<roundup-classhelper searchWith="title,status[],keyword[]-name">
122+
<roundup-classhelper data-search-with="title,status[],keyword[]-name">
123123
<span tal:condition="context/is_edit_ok" tal:replace="structure python:db.issue.classhelp('id,title', property='superseder', pagesize=100)" />
124124
</roundup-classhelper>
125125
```
@@ -128,7 +128,7 @@ In addition to keyboard navigation, the `<roundup-classhelper>` component can be
128128
#### User ClassHelper
129129
* To emulate the normal user ClassHelper behavior (e.g., for username and roles), use the following attribute values:
130130
``` html
131-
<roundup-classhelper searchWith="username,roles[]">
131+
<roundup-classhelper data-search-with="username,roles[]">
132132
<!-- ClassHelper content -->
133133
</roundup-classhelper>
134134
```

0 commit comments

Comments
 (0)