ngtr-tiny-calendar v0.5.3
NgtrTinyCalendar
Tiny calendar for selecting dates. Uses Luxon DateTimes and Angular.
DEPRECATED: Project moved into ngtr-calendar
- optional today-setter
1. Import module.
@NgModule({
declarations: [
AppComponent
],
imports: [
...
NgtrTinyCalendarModule
...
],
providers: [],
bootstrap: [ AppComponent ]
})
2. import in component
import { NgtrTinyCalendarComponent } from "ngtr-tiny-calendar";
<ngtr-tiny-calendar
style="width: 100%;"
[viewDate]="viewDate"
[today]="viewDate.minus({weeks: 3})"
[minDate]="calendarService.minDateTime"
[maxDate]="calendarService.maxDateTime"
(viewDateChanged)="onTinyViewDateChanged($event)"
></ngtr-tiny-calendar>
3. change colors in tiny-calendar and import scss file
$primary: #ff8000 !default;
$info: red !default;
$title-color: #ffffff !default;
$today-color: #5e9d69 !default;
$disabled-color: #ccc !default;
$disabled-text-color: #aaa !default;
$selected-day-color: #cedcf1 !default;
$hover-color: $info !default;
@import "~ngtr-tiny-calendar/ngtr-tiny-calendar.scss";
4. (optional) Set locale
constructor() {
Settings.defaultLocal = 'nl'
}
This library was generated with Angular CLI version 11.0.5.
Code scaffolding
Run ng generate component component-name --project ngtr-tiny-calendar
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project ngtr-tiny-calendar
.
Note: Don't forget to add
--project ngtr-tiny-calendar
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build ngtr-tiny-calendar
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build ngtr-tiny-calendar
, go to the dist folder cd dist/ngtr-tiny-calendar
and run npm publish
.
Running unit tests
Run ng test ngtr-tiny-calendar
to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago