The sidebar SDK makes it possible to hide and show a changelog on Changes using a programmable sidebar. This SDK is powered by the Core SDK.
# npm
npm install changelog-sidebar
# yarn
yarn add changelog-sidebar
import Sidebar from 'changelog-sidebar';
// Instantiate the sidebar
let sdk = new Sidebar({
id: '5Web2XRF',
key: 'IK-X2zvTYjp-NCg-3q2Rj'
});
// Toggle the sidebar
sdk.toggle();
// Open the sidebar
sdk.open();
// Close the sidebar
sdk.close();
Create a new sidebar-instance.
Type:
{
id: string;
key: string;
element: string;
}
Open the sidebar programmatically.
Close the sidebar programmatically.
Open or close the sidebar programmatically.