mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-24 00:25:05 +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' |
|
||||
| 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 |
|
||||
| extraClasses | Additional classes in the created <i> tag | '' | 'fa-rotate90 myclass' eller other custom configuration |
|
||||
|
||||
|
||||
### Supported icons
|
||||
|
||||
Vendored
+2
-1
@@ -28,6 +28,7 @@
|
||||
className: 'awesome-marker',
|
||||
prefix: 'glyphicon',
|
||||
spinClass: 'fa-spin',
|
||||
extraClasses: '',
|
||||
icon: 'home',
|
||||
markerColor: 'blue',
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user