mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Merge pull request #25 from peterneubauer/2.0/develop
Adding extreaClasses option
This commit is contained in:
@@ -63,6 +63,7 @@ http://getbootstrap.com/getting-started/
|
|||||||
| markerColor | Color of the marker | 'blue' | 'red', 'darkred', 'orange', 'green', 'darkgreen', 'blue', 'purple', 'darkpuple', 'cadetblue' |
|
| markerColor | Color of the marker | 'blue' | 'red', 'darkred', 'orange', 'green', 'darkgreen', 'blue', 'purple', 'darkpuple', 'cadetblue' |
|
||||||
| iconColor | Color of the icon | 'white' | 'white', 'black' or css code (hex, rgba etc) |
|
| iconColor | Color of the icon | 'white' | 'white', 'black' or css code (hex, rgba etc) |
|
||||||
| spin | Make the icon spin | false | true or false. Font-awesome required |
|
| spin | Make the icon spin | false | true or false. Font-awesome required |
|
||||||
|
| extraClasses | Additional classes in the created <i> tag | '' | 'fa-rotate90 myclass' eller other custom configuration |
|
||||||
|
|
||||||
|
|
||||||
### Supported icons
|
### Supported icons
|
||||||
|
|||||||
Vendored
+2
-1
@@ -28,6 +28,7 @@
|
|||||||
className: 'awesome-marker',
|
className: 'awesome-marker',
|
||||||
prefix: 'glyphicon',
|
prefix: 'glyphicon',
|
||||||
spinClass: 'fa-spin',
|
spinClass: 'fa-spin',
|
||||||
|
extraClasses: '',
|
||||||
icon: 'home',
|
icon: 'home',
|
||||||
markerColor: 'blue',
|
markerColor: 'blue',
|
||||||
iconColor: 'white'
|
iconColor: 'white'
|
||||||
@@ -75,7 +76,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return "<i " + iconColorStyle + "class='" + options.prefix + " " + iconClass + " " + iconSpinClass + " " + iconColorClass + "'></i>";
|
return "<i " + iconColorStyle + "class='" + options.extraClasses + " " + options.prefix + " " + iconClass + " " + iconSpinClass + " " + iconColorClass + "'></i>";
|
||||||
},
|
},
|
||||||
|
|
||||||
_setIconStyles: function (img, name) {
|
_setIconStyles: function (img, name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user