Skip to content

Taxonomy configuration

Zack edited this page May 3, 2018 · 1 revision

With Popoto you can customize the display of the taxonomy panel

 popoto.provider.taxonomy.Provider = {}

All taxonomy configuration are listed below:

Get text value

Function used to return the text representation of a taxonomy.

The default behavior is to return the label without changes.

"getTextValue": function (label) {
    return label;
}

Get CSS class

"getCSSClass": function (label, element) {
    var labelAsCSSName = label.replace(/[^0-9a-z\-_]/gi, '');

    var cssClass = "ppt-taxo__" + element;

    return cssClass + " " + labelAsCSSName;
}