ng-zendesk-webwidget
Zendesk-Webwidget for Angular
Installation
$ npm install ng-zendesk-webwidget --save
$ yarn add ng-zendesk-webwidget
Usage
ZendeskWebwidgetModule
In app.module import ;; ; ;
Using a SharedModule
Configuration
;; ; ;
ZendeskWebwidgetService
for your application:
2. Init the ;
3. Example to usage:
constructorprivate _ZendeskWebwidgetService: ZendeskWebwidgetService logout}
API
ZendeskWebwidgetService
Methods:
setLocale('en')
Set to change language
identify(userObj)
If your user is signed in, you can use this methods for to pass the details of that user to your Zendesk
hide()
: The method completely hides all parts of the Widget from the page.
show()
: The method displays the Widget on the host page in its starting 'button' state.
activate(options)
: The method activates and opens the Widget in its starting state.
setHelpCenterSuggestions(options)
: The method enhances the contextual help provided by the Web Widget.
setSettings(settings)
: The method sets window.zESettings
.
For more info, see: ZendeskAPI
ZendeskWebwidgetConfig:
accountUrl
: Url of your domain (example.zendesk.com)beforePageLoad
: Callback, executed after Zendesk loaded
Deploy
To deploy new versions use np
Issues
Please report bugs and issues here.
License
MIT © Markus Thiel