开源软件名称(OpenSource Name):classlinkinc/angular-material-time-picker开源软件地址(OpenSource Url):https://github.com/classlinkinc/angular-material-time-picker开源编程语言(OpenSource Language):HTML 70.9%开源软件介绍(OpenSource Introduction):Looking for maintainersThere are people still using angular-material-time-picker in their projects and we have a few issues open + pull requests. This projects is open to new lead maintainers. Please contact the current maintainer. Angular Material Time Picker (md-time-picker)Angular Material has a date picker, but no time picker. This module is an effort to implement a time picker in Angular Material. The modal popup is based off mdPickers, but with modifications for 24 hour time, removal of dependency on momentjs, and improvements in usability. The "time input field" is made up of three individual text inputs for hour, minute, and meridiem. This allows better cross browser support, especially for older browsers that do not support time input. ScreenshotsOn page
Modal
DemoA live Codepen demo. The same html/css file is also included in the Requirements
InstallationUsing npm
You may use Webpack to inject this module into your application. ES5require('angular-material-time-picker/dist/md-time-picker.css');
var ngTimePicker = require('angular-material-time-picker');
angular.module('myApp', [ngTimePicker]); ES6import 'angular-material-time-picker/dist/md-time-picker.css';
import ngTimePicker from 'angular-material-time-picker';
angular.module('myApp', [ngTimePicker]); UsageExample Controller angular.module('demoApp')
.controller('demoAppController', ['$scope','$mdpTimePicker', function($scope) {
// Model bound to input fields and modal
$scope.time = new Date();
// Optional message to display below each input field
$scope.message = {
hour: 'Hour is required',
minute: 'Minute is required',
meridiem: 'Meridiem is required'
}
$scope.readonly = false;
$scope.required = true;
}]); Example Template <md-time-picker ng-model="time" message="message" read-only="readonly" mandatory="required" no-meridiem no-auto-switch></md-time-picker> Optional Attributes
LicenseThis software is provided free of charge and without restriction under the MIT License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论