There may be instances when you want to hide the Widget completely on your Site. The Widget won't show up, but the player will still work. Then, let's say you want a link in your standard navigation menu, such as Help, to display the Widget with the list of Topics available upon clicking. There are two options to achieve this, and we will discuss them in this article.
Trigger the Widget with CSS
Login the to Inline Manual portal with your e-mail and password.
Go to Sites and choose the desired Site.
Go to the Widget tab and then click on Settings.
Go to the Widget button tab (A). In the Custom trigger field (B), add a custom CSS selector of that link. The player will attach itself to it, so when clicked, it will trigger the display of the topic list.
Confirm with the Save and Publish button.
Trigger the Widget with onclick (HTML)
If you're using a hyperlink, add to onclick value:
inlinemanualplayer.showPanel();
This will show the list of the topics once the link is clicked. For example
<a onclick="inline_manual_player.showPanel()">Show panel</a>
Trigger the Widget with a link
You can provide a direct link that will open the Widget.
?imWidget=1
Add it at the end of your Site's URL. For example
http://exampleapp.com/?imWidget=1
Splash Mode
You can also enable Splash mode, which will display the list of Topics in the centre of the screen.
To enable Splash mode:
- While in Settings, go to Widget content.
- Scroll down to Splash mode and enable the option.
- Confirm with the Save and Publish button.