Utils

getRandomId#

Returns: String

Generates 12-digits alphanumeric ID string.


let utils = this.app.create('utils');
let id = utils.getRandomId();

wrap #

Arguments:

  • html String

Returns: String

Creates a div layer with specified HTML string.


let utils = this.app.create('utils');
html = utils.wrap(html, function($w) {
    let $elms = $wrapper.find('span');
    $elms.addClass('someclass');
});