angular
folder.
angular/index.html
and main application file is
angular/js/app.js
angular/js/controllers/main.js
which contains 3 controllers:
MainController
: doesn't have much except for a few global variables, loading progressbar (spinner icon) and getData
function as described in 'Data Files' sectionSettingsCtrl
: optional controller for responding to settings box changesSidebarCtrl
: optional controller that loads sidebar items from $stateProvider
states defined inside angular/js/app.js
SidebarList
: converts app.js
$stateProvider states to a list of sidebar items to be used in sidebar templateStorageGet
: loads localStorage stored values, such as ace.settings, ace.sidebar, etc...js/controllers/pages
folder.
angular/js/controllers/pages/dashboard.js
getData
function in angular/js/controllers/main.js
angular/data/pages/dashboard/conversations.json
, etc:
...
angular/js/app.js
router states!
angular/js/controllers/main.js
converts those states to a list which is used by
angular/views/layouts/default/partial/sidebar.html
angular/views/layouts/default/partial/sidebar/item.html
angular/js/controllers/main.js
$scope.ace.sidebar
which includes:
minimized
: collapse/expand sidebartoggle
: toggle in/out sidebar in mobile modereset
: reset sidebar scrollbars and submenu positionangular/js/controllers/main.js
$scope.ace.settings
.
angular/js/directives/ace.js
angular/js/controllers
ui-breadcrumb
is required for determining current active item and sidebar highlight.
ace-scroll
: It's a wrapper for ace_scroll, so you can use the same options:
...
widget-box
: Basically a wrapper for widget box and you can use scope variables to change its state.
wb-reloading
: Puts widget in loading statewb-fullscreen
: Toggles fullscreen mode on/offwb-closed
: If set to true widget box is removedwb-hidden
: If true, widget box becomes hiddenwb-toggle
: If true, widget box is shown otherwise hidden. Should be initialized with !wbHidden valuesave
: If true, widget box's state(collapsed or note) will be saved/restored using localStorage. Widget box should have an id
attributesave-name
: Optional name used to save its state in localStorage.on-reload
on-close
on-fullscreen
on-show
on-hide
And inside controller:
$scope.is_reloading = false; $scope.on_reload_widget = function() { //after content is loaded //$scope.is_reloading = false; }
widget-header
: widget box's header.
toolbar
: Specify what buttons should be used in toolbartoggle-icon-down & toggle-icon-up
: Optional toggle iconswb-hidden
: You should use the same wbHidden variable used for widget box!Widget Box Title
ace-colorpicker
is a directive for colorpicker element:
Following variables are available:
colors
: A list of colors with optional values to be usedoptions
: Options are pull_right and caretadd-new
: If true and ngModel is assigned a new color value, it will be added to our list. Default is falseng-value
: In your list you can specify a value for each color, and ngValue will be updated according to selected color$scope.widgetColors = { '#307ECC': 'blue', '#5090C1': 'blue2', '#6379AA': 'blue3' };
ace-fileinput
is a wrapper for Ace's file input element:
options
: file input optionsprops
: properties such as 'loading', 'enabled', 'reset_button'file-list
: list of file names to display on intial display of file inputon-change
: when file selection is changedon-error
: when there is an erroron-preview
: when preview is ready$scope.files1 = null;//it will contain a list of File objects when selection changes $scope.fileInputProps1 = { 'loading': false, 'enabled': true, 'reset_button': true };Note that you can reset file input when you set the model to null:
$scope.resetFile = function() { $scope.files1 = null; }
ace-sidebar
enables sidebar functions such as scroll bar and hover menu.
options
: same as ace_sidebar optionsprops
: properties such as 'minimized' & 'toggle'(used in mobile menu)scroll
: set true or an object like ace_sidebar_scroll options to enable sidebar scrollhover
: set true or an object like ace_sidebar_hover options to enable sidebar hoverangular/js/directives/vendor.js
options
variable.
sparkline
: jQuery Spakline
prettify
: Google Code Prettify
lang
linenums
input-limiter
: Input Limiter
fx-spinner
: FuelUX Spinbox
bs-datepicker
: Bootstrap Datepicker
bs-timepicker
: Bootstrap Timepicker
date-timepicker
: Bootstrap DateTimepicker
bs-wysiwyg
: Bootstrap Wysiwyg
bs-markdown
: Markdown Editor
x-editable
: Inline Editable
jq-sortable
: Wrapper for jQuery UI Sortable with following extra options:
target
the elements for which you want to enable sortable featuresave
whether you want to save order of elements in localStorage and restore latersave-name
optional name used to save info in localStorage