ngx-zendesk-webwidget-8
Zendesk-Webwidget for Angular 2+
Zendesk-Webwidget for Angular 1.x see here
Installation
Via npm:
$ npm install ngx-zendesk-webwidget-8 --save
Usage
ngxZendeskWebwidgetModule
:
1. Import the ;; ; ;
SharedModule
Configuration
;; ; ;
ngxZendeskWebwidgetService
for your application:
2. Init the ;
3. Example to usage:
constructorprivate _ngxZendeskWebwidgetService: ngxZendeskWebwidgetService logout}
API
ngxZendeskWebwidgetService
Methods:
setLocale(locale)
: Set locale 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 setswindow.zESettings
.
For more info, see: ZendeskAPI
ngxZendeskWebwidgetConfig:
accountUrl
: Url of your domain (example.zendesk.com)beforePageLoad
: Callback, executed after Zendesk loaded
Issues
Please report bugs and issues here.
License
MIT © Alison Vilela
Change log
v0.1.5
- Support Angular 8
v0.1.4
- Support Angular 6
v0.1.3
- Support Angular 5
v0.1.2
- Added custom settings
v0.1.1
- Change documentation
v0.1.0
- Added documentation
- Initial version