Преглед на файлове

Add a separate bootstrap 3 theme that uses glyphicons

Joan Karadimov преди 8 години
родител
ревизия
3255f5ff9e
променени са 2 файла, в които са добавени 24 реда и са изтрити 1 реда
  1. 1 1
      demos/theme-bootstrap.html
  2. 23 0
      src/common/Theme.js

+ 1 - 1
demos/theme-bootstrap.html

@@ -57,7 +57,7 @@
 		}
 
 		$('#calendar').fullCalendar({
-			theme: 'bootstrap3',
+			theme: 'bootstrap3_glyphicons',
 			customButtons: {
 				pickTheme: {
 					text: 'Pick Theme',

+ 23 - 0
src/common/Theme.js

@@ -77,6 +77,29 @@ var themes = {
 			prevYear: 'fc-icon fc-icon-left-double-arrow',
 			nextYear: 'fc-icon fc-icon-right-double-arrow'
 		}
+	},
+	bootstrap3_glyphicons: {
+		classes: {
+			listContent: 'panel-default',
+			popover: 'panel panel-default',
+			popoverHeader: 'panel-heading',
+			popoverContent: 'panel-body',
+			stateActive: 'active',
+			stateDisabled: 'disabled',
+			button: 'btn btn-default',
+			buttonGroup: 'btn-group',
+			tableHeader: 'panel-default',
+			tableContent: 'panel-default',
+			tableGrid: 'table-bordered',
+			tableList: 'table'
+		},
+		iconClasses: {
+			close: 'glyphicon glyphicon-remove',
+			prev: 'glyphicon glyphicon-chevron-left',
+			next: 'glyphicon glyphicon-chevron-right',
+			prevYear: 'glyphicon glyphicon-backward',
+			nextYear: 'glyphicon glyphicon-forward'
+		}
 	}
 };