Sha256: 7672e6b69bc0c6344317b3cb49bb84eeaac28c2163121bcc84b212dfd5c8a99a
Contents?: true
Size: 649 Bytes
Versions: 8
Compression:
Stored size: 649 Bytes
Contents
angular.module('ui.bootstrap.demo').controller('TimepickerDemoCtrl', function ($scope, $log) { $scope.mytime = new Date(); $scope.hstep = 1; $scope.mstep = 15; $scope.options = { hstep: [1, 2, 3], mstep: [1, 5, 10, 15, 25, 30] }; $scope.ismeridian = true; $scope.toggleMode = function() { $scope.ismeridian = ! $scope.ismeridian; }; $scope.update = function() { var d = new Date(); d.setHours( 14 ); d.setMinutes( 0 ); $scope.mytime = d; }; $scope.changed = function () { $log.log('Time changed to: ' + $scope.mytime); }; $scope.clear = function() { $scope.mytime = null; }; });
Version data entries
8 entries across 8 versions & 1 rubygems