showToggle
The showToggle() function displays the FacePop toggle button if it has been previously hidden.
Description
The showToggle() function makes the toggle button visible if it was previously hidden. The toggle button allows users to minimize or maximize the FacePop player.
This function is particularly useful when you've previously hidden the toggle button using hideToggle() and now want to make it visible again.
Usage
Call this function when you want to show the toggle button:
// Show the FacePop toggle button
Answerly.FacePop.showToggle();
Example
Below is an example of how to show the toggle button after it has been hidden:
// First hide the toggle button
Answerly.FacePop.hideToggle();
// Later in your code, when you want to show it again
Answerly.FacePop.showToggle();
When to Use
Consider using showToggle() in these scenarios:
- After you've previously hidden the toggle button with
hideToggle() - When you want to give users the ability to minimize the player after forcing it to be expanded
- When transitioning between different sections of your website where you want to restore normal player controls
- After a specific user interaction where you previously restricted toggle functionality
Note
This function only shows the toggle button if it was previously hidden. If the toggle button is already visible, calling this function will have no visible effect.