@wayke-se/components-react 4.0.0-beta.14 → 4.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -135,8 +135,8 @@ const App = ({}) => {
|
|
|
135
135
|
const id = 'd01f79a3-7552-49c4-9d4d-deb3aa581c31';
|
|
136
136
|
|
|
137
137
|
// Optional, get id when related vehicles are clicked
|
|
138
|
-
const onClickSearchItem = useCallback((
|
|
139
|
-
console.log(id);
|
|
138
|
+
const onClickSearchItem = useCallback((data) => {
|
|
139
|
+
console.log(data.id);
|
|
140
140
|
}, []);
|
|
141
141
|
|
|
142
142
|
return (
|
|
@@ -191,7 +191,7 @@ const App = ({}) => {
|
|
|
191
191
|
| removeSearchBar | boolean | |
|
|
192
192
|
| removeFilterOptions | boolean | |
|
|
193
193
|
| placeholderImage | string | |
|
|
194
|
-
| onClickSearchItem | function | (
|
|
194
|
+
| onClickSearchItem | function | (data: CallbackItemData) => void |
|
|
195
195
|
| modifyDocumentTitleSearch | string | |
|
|
196
196
|
| displayBranchName | string | |
|
|
197
197
|
|
|
@@ -338,7 +338,7 @@ import { WaykePubSub} from '@wayke-se/components-react';
|
|
|
338
338
|
|
|
339
339
|
const event = {
|
|
340
340
|
eventName: 'ItemClicked',
|
|
341
|
-
callback: (data) =>
|
|
341
|
+
callback: (data) => console.log('subscribed ItemClicked:', data),
|
|
342
342
|
};
|
|
343
343
|
|
|
344
344
|
WaykePubSub.subscribe(event);
|