Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@acpaas-ui/ngx-calendar

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acpaas-ui/ngx-calendar

A simple calendar component with a month, year and decennia view where you can easily navigate to a specific date.

  • 6.1.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@acpaas-ui/ngx-calendar

A simple calendar component with a month, year and decennia view where you can easily navigate to a specific date.

Usage

import { CalendarModule } from '@acpaas-ui/ngx-calendar';

Documentation

Visit our documentation site for full how-to docs and guidelines

API

NameDefault valueDescription
@Input() selectedDate: Date;-The date the user selected. Will be used as a base for the different calendar views.
@Input() range: DateRange;-A date range to decide which dates are available for selection.
@Input() weekdayLabels: WeekdayLabelsConfig;-Override the default weekday labels. Can also be done in the forChild method.
@Input() monthLabels: MonthLabelsConfig;-Override the default month labels. Can also be done in the forChild method.
@Output() selectDate: EventEmitter<any>-Will emit the selected date and completion state (the date is complete when a day is picked).

Example

import { CalendarModule } from '@acpaas-ui/ngx-calendar;'

@NgModule({
    imports: [
        CalendarModule.forChild([
            'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday',
        ], [
            'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December',
        ])
    ]
});

export class AppModule {};
import { DateRange } from '@acpaas-ui/ngx-utils';

public clickedDate: Date = new Date();
public range: DateRange = [1, 6];

selectDate(event) {
    if (event.complete) {
        this.clickedDate = event.date;
    }
}
<aui-calendar
    [range]="range"
    [selectedDate]="clickedDate"
    (selectDate)="selectDate($event)">
</aui-calendar>

Contributing

Visit our Contribution Guidelines for more information on how to contribute.

FAQs

Package last updated on 21 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc