var app = angular.module('app', ['ngTouch', 'ui.grid', 'ui.grid.resizeColumns', 'ui.grid.moveColumns']);
app.controller('MainCtrl', ['$scope', '$http', function ($scope, $http) {
$scope.gridOptions = {
enableSorting: true,
columnDefs: [
{ field: 'name', minWidth: 200, width: 250, enableColumnResizing: false },
{ field: 'gender', width: '30%', maxWidth: 200, minWidth: 70 },
{ field: 'company', width: '20%' }
]
};
$http.get('https://cdn.rawgit.com/angular-ui/ui-grid.info/gh-pages/data/100.json')
.success(function(data) {
$scope.gridOptions.data = data;
});
}]);
html,body {
height: 100%;
font-family: 'Arial';
background-color: #F2F2F4;
}
body {
margin: 0;
padding: 0;
}
.search, .ng-tree-search {
width: 95%;
margin: auto;
margin-top: 5px;
margin-bottom: 5px;
}
@media (min-width: 1600px) {
.container {
width: 1400px;
}
}
.chevron {
top: 5px;
}
.btn:focus,.btn:hover,.btn:active {
outline: 0 !important;
}
.form-control, .form-control-feedback, .input-group-addon {
height: 35px !important;
padding: 0px 15px;
}
.has-feedback label~.form-control-feedback, .form-control-feedback {
top: 21px;
}
.form-control-date {
width: 93%;
}
.form-control {
width: 93%;
}
.darkred {
color: #BE3800;
}
.yellow {
color: darkorange;
}
#active-switch.active {
background-color: #BE3800;
}
.icon {
color: white;
font-size: 1.5em;
}
.dow {
color: white;
}
.ng-tree-search, .environment-select, .ui-grid-filter-input {
padding: 5px 15px !important;
}
.bootstrap-switch-primary {
background-color: #375a7f !important;
}
.bootstrap-switch-default {
background-color: #464545 !important;
color: white !important;
}
.header {
min-height: 50px;
max-height: 50px;
background-color: #00243E;
display: flex;
flex-direction: row;
align-items: center;
}
.environment-select {
margin-left: 15px;
min-width: 150px;
text-align: left;
margin-right: 5px;
}
.environment-box {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
margin-left: 0;
margin-right: 0;
}
.settings-button {
margin-right: 0px;
}
.dropdown-menu {
margin: 0;
}
.clear-button, .clear-button:active, .clear-button:focus, .clear-button:hover {
color: white;
background-color: transparent;
border: none;
outline: none;
margin: 0px 10px;
}
#menu-toggle {
outline: none;
background-color: transparent;
border: none;
margin-left: 7px;
}
.logo {
margin-left: 50px;
height: 45px;
margin-top: 5px;
}
.text-large {
font-size: 1.2em;
}
.light {
color: white;
}
.flex {
display: -ms-flexbox;
display: flex;
}
.vcenter {
display: -ms-flexbox;
display: flex;
flex-direction: row;
align-items: center;
align-content: flex-end;
margin-left: auto;
}
.vcenter > *{ margin: 0 5px; }
.vcentere {
display: -ms-flexbox;
display: flex;
flex-direction: row;
align-items: center;
align-content: flex-end;
margin-left: auto;
margin-right: 0;
}
.vcentere > *{ margin: 0 5px; }
.flex-col {
/*display: -ms-flexbox;*/
display: flex;
flex: 1;
flex-direction: column;
}
.flex-row {
display: -ms-flexbox;
display: flex;
flex-direction: row;
}
.index-body, .flex-body {
flex: 1 0 auto;
}
#wrapper {
flex: 1 0 auto;
}
#page-content-wrapper {
}
#button-bar {
height: 50px;
min-height: 50px;
}
#table-container {
flex: 1 0 auto;
margin: 0px 5px 5px 5px;
}
.data-grid {
flex: 1 0 auto;
}
.ui-grid-row, .ui-grid-cell {
cursor: pointer !important;
}
.panel-heading {
color: #F2F2F4 !important;
background-color: #003C72 !important;
}
.panel-body {
max-height: 450px;
overflow-y: auto;
background-color: #f2f2f2;
}
.panel {
border: 1px solid #e1e1e1;
}
.username {
color: #f2f2f2;
margin-left: auto;
margin-right: 10px;
}
.arksigma-logo {
height: 200px;
}
.center-modal {
position: fixed;
top: 10%;
left: 18.5%;
z-index: 1050;
width: 80%;
height: 80%;
margin-left: -10%;
}
.fader.ng-hide {
opacity: 0;
}
.fader.ng-hide-remove,
.fader.ng-hide-add {
display: block !important;
}
.fader.ng-hide-remove {
transition: all linear 250ms;
}
.fader.ng-hide-add {
transition: all linear 250ms;
}
.btn {
white-space: normal;
}
.unauth-logo {
width: 20%;
margin-top: 100px;
}
.login-container {
margin: 10px 10px;
}
.welcome-text {
margin: 0 5px;
}
<!doctype html>
<html ng-app="app">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular-touch.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular-animate.js"></script>
<script src="http://ui-grid.info/docs/grunt-scripts/csv.js"></script>
<script src="http://ui-grid.info/docs/grunt-scripts/pdfmake.js"></script>
<script src="http://ui-grid.info/docs/grunt-scripts/vfs_fonts.js"></script>
<script src="http://ui-grid.info/release/ui-grid.js"></script>
<link rel="stylesheet" href="http://ui-grid.info/release/ui-grid.css" type="text/css">
<link rel="stylesheet" href="main.css" type="text/css">
</head>
<body class="flex-col">
<div class="flex-col">
<div class="flex-col">
<div class="flex-row">
<div ng-controller="MainCtrl" class="flex-col ng-scope">
<div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-move-columns ui-grid-selection ui-grid-pinning ui-grid-save-state ui-grid-exporter class="data-grid"></div>
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>