Add the Tako search and edit experiences directly into your app.
postMessage
calls. This is how the app and the plugin iframes will tell each other which actions to take and with what payload (search queries, knowledge card URLs, etc.).
You will both send messages to the plugin and listen for messages from the plugin.
These are the available message types:
hasSearchBar
in your INIT_TAKO
call, sending this message is
likely unnecessary since the plugin’s built-in search bar will handle searching instead.
Payload:
hasEdit
param in INIT_TAKO,
an edit button will appear in the top right corner of the search result on hover.
You should listen for this event in your app and handle the payload as needed.
Payload:
?dark_mode=true
or ?dark_mode=false
to the src URL.
For example,
https://trytako.com/plugin/search/?dark_mode=true
yields a search experience like this:
https://trytako.com/plugin/search/?dark_mode=false
yields a search experience like this: