2.2 KiB
Mibew Advanced Button plugin
It make the button represents actual operator's state and automatically hides it if the chat was started.
The plugin needs the feature "Tracking and inviting" to be enabled. Otherwise it will just not work.
NB.: If one enabled the feature "Tracking and inviting" for the first time, the button should be regenerated.
Installation
-
Get the archive with the plugin sources. You can download it from the official site or build the plugin from sources.
-
Untar/unzip the plugin's archive.
-
Put files of the plugins to the
<Mibew root>/plugins
folder. -
(optional) Add plugins configs to "plugins" structure in "
<Mibew root>
/configs/config.yml". If the "plugins" stucture looks likeplugins: []
it will become:plugins: "Mibew:AdvancedButton": # Plugin's configurations are described below mode: display submode: block
-
Navigate to "
<Mibew Base URL>
/operator/plugin" page and enable the plugin.
Plugin's configurations
The plugin can be configured with values in "<Mibew root>
/configs/config.yml" file.
config.mode
Type: String
Default: visibility
Specify a mode to hide the button after the start of the chat. Possible values: visibility
(hide using visibility
CSS property), display
(hide using display
CSS property), none
(do nothing).
config.submode
Type: String
Default: inline-block
Specify a value of the display
CSS property for the visible button if mode was set to display
.
Build from sources
There are several actions one should do before use the latest version of the plugin from the repository:
- Obtain a copy of the repository using
git clone
, download button, or another way. - Install node.js and npm.
- Install Gulp.
- Install npm dependencies using
npm install
. - Run Gulp to build the sources using
gulp default
.
Finally .tar.gz
and .zip
archives of the ready-to-use Plugin will be available in release
directory.