0.5.3 • Published 2 years ago

ngtr-tiny-calendar v0.5.3

Weekly downloads
55
License
MIT
Repository
-
Last release
2 years ago

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 your angular.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.

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

3 years ago

0.4.9

3 years ago

0.4.10

3 years ago

0.4.8

3 years ago

0.4.7

3 years ago

0.4.5

3 years ago

0.4.4

3 years ago

0.4.6

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.3.5

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.0

3 years ago

0.2.3

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.2

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.0

3 years ago