Docs update

This commit is contained in:
Francisco Hodge
2018-10-31 19:47:03 -04:00
parent 41cf4a472b
commit 1ee5c7dd2d
7 changed files with 40712 additions and 39023 deletions
@@ -105,6 +105,11 @@ class SimpleKeyboard {
this.options.theme = this.options.theme || "hg-theme-default";
this.options.inputName = this.options.inputName || "default";
/**
* @type {object} Classes identifying loaded plugins
*/
this.keyboardPluginClasses = '';
/**
* Bindings
*/
@@ -599,11 +604,11 @@ class SimpleKeyboard {
/* istanbul ignore next */
if(module.constructor.name && module.constructor.name !== "Function"){
this.keyboardDOM.classList.add(
`module-${this.utilities.camelCase(module.constructor.name)}`
);
let classStr = `module-${this.utilities.camelCase(module.constructor.name)}`;
this.keyboardPluginClasses = this.keyboardPluginClasses + ` ${classStr}`;
}
this.render();
module.init(this);
});
}
@@ -675,7 +680,7 @@ class SimpleKeyboard {
/**
* Adding themeClass, layoutClass to keyboardDOM
*/
this.keyboardDOM.className += ` ${this.options.theme} ${layoutClass}`;
this.keyboardDOM.className += ` ${this.options.theme} ${layoutClass} ${this.keyboardPluginClasses}`;
/**
* Iterating through each row