GithubHelp home page GithubHelp logo

candidosales / material-time-picker Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 1.0 24.06 MB

Material Time Picker for Angular 7, 9, 10, 11, 12, 13, 14 and 15

License: MIT License

JavaScript 7.85% TypeScript 52.80% HTML 13.25% SCSS 26.11%
angular time-picker material-components material-ui

material-time-picker's Introduction

Material Time Picker

A simple time picker component using Angular Material.

Compatibility

Version Angular
2.8.0 15
2.6.0 14
2.5.0 13
2.4.0 12
2.3.0 11
2.2.0 10
2.1.0 9
2.0.0 7

Installation

npm i @candidosales/material-time-picker

Quickstart

Import material-time-picker module in Angular app.

import { MaterialTimePickerModule } from '@candidosales/material-time-picker';

(...)

@NgModule({
  (...)
  imports: [
    MaterialTimePickerModule
  ]
  (...)
})

Usage

import { Component } from "@angular/core";

@Component({
  selector: "d-root",
  templateUrl: "./app.component.html",
  styleUrls: ["./app.component.scss"],
})
export class AppComponent {
  title = "demo";
  exportTime = { hour: 7, minute: 15, meriden: "PM", format: 24 };

  onChangeHour(event) {
    console.log("event", event);
  }
}
<material-timepicker
  color="primary"
  label="Hour 2"
  appearance="fill"
  [userTime]="exportTime"
  (change)="onChangeHour($event)"
  revertLabel="Remove"
  submitLabel="Ok"
  [disabled]="disabled"
  [readonly]="readonly"
></material-timepicker>

Examples

Check the demo.

πŸ“š Reference

πŸ‘ Contribute

If you want to say thank you and/or support the active development this project:

  1. Add a GitHub Star to the project.
  2. Tweet about the project on your Twitter.
  3. Write a review or tutorial on Medium, Dev.to or personal blog.
  4. Support the project by donating a cup of coffee.

β˜• Supporters

If you want to support Material Time Picker, you can β˜• buy a coffee here

✨ Acknowledgment

Author

⚠️ Copyright and license

Code and documentation copyright 2020-2030 the Authors and Code released under the MIT License. Docs released under Creative Commons.

Test Locally

npm run lib:build
npm run start

material-time-picker's People

Contributors

candidosales avatar dependabot[bot] avatar passtech avatar rafaeldcastro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

passtech

material-time-picker's Issues

entering time with keyboard breaks everything

When I try to change the current time with keyboard and type numbers,
Everything changes to undefined!
Here is what I'm talking about:
At the beginning, everything is normal:
Screenshot (28)
After typing "number" with the keyboard:
Screenshot (29)
If it also does not allow user to enter string characters it would be much better!

Node version

Hello,
I have an error.
@candidosales/[email protected]: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <17.0.0". Got "18.12.1"
Is it possible to update your lib to 18+?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.