Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
derbysoft-all-in-one-help-widget
Advanced tools
Using NPM
:
$ npm install derbysoft-all-in-one-help-widget
You can use AllInOneHelpWidget
constructor to initial all the widgets and render the action button.
import AllInOneHelpWidget from 'derbysoft-all-in-one-help-widget';
new AllInOneHelpWidget({
[AllInOneHelpWidget.GoogleAnalytics]: {
id: 'GOOGLE_ANALYTICS_ID',
enabled: true
},
[AllInOneHelpWidget.Smartlook]: {
id: 'SMART_LOOK_ID',
enabled: true
},
[AllInOneHelpWidget.ProductTours]: {
id: 'PRODUCT_TOURS_ID',
enabled: true
},
[AllInOneHelpWidget.KnowledgeBase]: {
id: 'KNOWLEDGE_BASE_ID',
enabled: true
},
[AllInOneHelpWidget.Feedback]: {
id: 'FEED_BACK_ID',
enabled: true
}
}).render();
Or you can create an instance and call methods to initial widgets.
// Import AllInOneHelpWidget
import AllInOneHelpWidget from 'derbysoft-all-in-one-help-widget';
// Create an instance
const allInOneHelpWidget = new AllInOneHelpWidget();
// Initial GoogleAnalytics
allInOneHelpWidget.initGoogleAnalytics({
id: 'GOOGLE_ANALYTICS_ID',
enabled: true
});
// Initial Smartlook
allInOneHelpWidget.initSmartlook({
id: 'SMART_LOOK_ID',
enabled: true
});
// Initial Feedback
allInOneHelpWidget.initFeedback({
id: 'FEED_BACK_ID',
enabled: true
});
// Initial KnowledgeBase
allInOneHelpWidget.initKnowledgeBase({
id: 'KNOWLEDGE_BASE_ID',
enabled: true
});
// Initial ProductTours
allInOneHelpWidget.initProductTours({
id: 'PRODUCT_TOURS_ID',
enabled: true
});
// Render action button
allInOneHelpWidget.render();
You can pass an object
type options to config AllInOneHelpWidget
.
const allInOneHelpWidget = new AllInOneHelpWidget({
parentEl: document.body,
position: AllInOneHelpWidget.Position.BOTTOM_RIGHT,
locale: "en-US"
});
Option | Description | Default value |
---|---|---|
parentEl | Parent container of the component button | document.body |
position | Location of component buttons | AllInOneHelpWidget.Position.BOTTOM_RIGHT |
locale | Languages applied within components | "en-US" |
You can config the widget when initialing.
Option | Description | Default value |
---|---|---|
id | Injected into the id of the plugin | undefined |
enabled | If true, the plugin will be injected into the page | false |
activated | Only KnowledgeBase has this option, if it is false, the KnowledgeBase option button will be disabled. | false |
Activate the KnowledgeBase option button.
const allInOneHelpWidget = new AllInOneHelpWidget();
allInOneHelpWidget.activateKnowledgeBase();
Disable the KnowledgeBase option button.
const allInOneHelpWidget = new AllInOneHelpWidget();
allInOneHelpWidget.deactivateKnowledgeBase();
Replace the parent container of a component button.
const allInOneHelpWidget = new AllInOneHelpWidget();
allInOneHelpWidget.replaceParentEl(ducument.body);
Replace the position of the component button.
const allInOneHelpWidget = new AllInOneHelpWidget();
allInOneHelpWidget.updatePosition(AllInOneHelpWidget.Position.BOTTOM_RIGHT);
Replace the language applied within the component.
const allInOneHelpWidget = new AllInOneHelpWidget();
allInOneHelpWidget.updateLocale('en-US');
FAQs
Derbysoft All In One Help Widget
The npm package derbysoft-all-in-one-help-widget receives a total of 2 weekly downloads. As such, derbysoft-all-in-one-help-widget popularity was classified as not popular.
We found that derbysoft-all-in-one-help-widget demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.