PHP Classes

File: vendors/gentelella/vendors/jqvmap/src/JQVMap/setColors.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/gentelella/vendors/jqvmap/src/JQVMap/setColors.js   Download  
File: vendors/gentelella/vendors/jqvmap/src/JQVMap/setColors.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 424 bytes
 

Contents

Class file image Download
JQVMap.prototype.setColors = function (key, color) { if (typeof key === 'string') { this.countries[key].setFill(color); this.countries[key].setAttribute('original', color); } else { var colors = key; for (var code in colors) { if (this.countries[code]) { this.countries[code].setFill(colors[code]); this.countries[code].setAttribute('original', colors[code]); } } } };