smart_suggest_new
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
smart_suggest_new [2018/08/03 14:21] rihad [Type] |
smart_suggest_new [2018/11/08 15:04] florian [Extending via hookpoints] |
||
---|---|---|---|
Line 59: | Line 59: | ||
==== Extending via hookpoints ==== | ==== Extending via hookpoints ==== | ||
----- | ----- | ||
- | === Basic === | ||
<note important>When extending the Smart Suggest via hookpoints, FINDOLOGIC cannot ensure the quality of the product anymore. Therefore, our technical support will not provide service for issues which are caused by adaptions of the Smart Suggest.</note> | <note important>When extending the Smart Suggest via hookpoints, FINDOLOGIC cannot ensure the quality of the product anymore. Therefore, our technical support will not provide service for issues which are caused by adaptions of the Smart Suggest.</note> | ||
- | |||
- | Once Smart Suggest initialization is complete, the event ''flAutocompleteReady'' is dispatched on ''document''. The event object passed to its listeners allows for various customizations. | ||
- | |||
- | To ensure that the even listener is always called, make sure to place a script tag as such before the FINDOLOGIC JS snippet: | ||
- | <code html> | ||
- | <script> | ||
- | document.addEventListener('flAutocompleteReady', function (e) { | ||
- | // ... | ||
- | }, false); | ||
- | </script></code> | ||
<note> The examples in the sections below assume the context of the listener function!</note> | <note> The examples in the sections below assume the context of the listener function!</note> |