Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
angular-holiday-planner
Advanced tools
A calendar for Angular 2+ focused on displaying long intervals, with an infinite scrollable view.
This library consists of two calendar components. Resource view which displays a scrollable overview of several people's calendars through months, and a Calendar view which displays a single calendar containing several months, and shows a single person's calendar.
You will understand once you see the Demo.
npm install angular-holiday-planner --save
import { AngularHolidayPlannerModule } from 'projects/angular-holiday-planner';
@NgModule({
...
imports: [
...
AngularHolidayPlannerModule
],
...
})
export class AppModule { }
<ahp-resource-view [rows]="rows"></ahp-resource-view>
Options for a single row in the view.
string
} - Title used by the default row template.string
} - Subtitle used by the default row template.string
} - URL to an image. Used by the default row template.Day[]
} - Days to mark on the resource view.Options for a single day (of resource) in the view.
date
(DayJs) - Date of rendered day.class
(string|string[]) - Classes to apply to the date cell.rows
(Resource[]) - List of resource objects that will render in the component.startDate
{dayjs.Dayjs
} - Date the view will center on initially. By default this is the current date.sideContainerWidth
{string
} - Width of the side container, eg. '200px'maxDate
{Dayjs
} - Maximum date the view will be scrollable to. No more days will load upon reaching this date. Infinite scroll must be true for this property to work.minDate
{Dayjs
} - Minimum date the view will be scrollable to. No more days will load upon reaching this date. Infinite scroll must be true for this property to work.infiniteScroll
{bool
} - if true more days will load upon scrolling to the end of the container.customDays
- Object containing custom days on the time line. Can specify custom classes to apply on a specific day, eg. holiday. Keys of object should be dates in 'DDMMYYYY' format, and values should be Day
objects containing CSS classes to apply.rowClick
- Emits when a resource is clicked.dayClick
- Emits when a specific resource date is clicked.headerClick
- Emits when date header is clicked (name of day, eg. "M")centerOn(date, behavior = 'smooth')
- Scrolls the view to a specific day.*resourceViewRow
- Custom template to show as a row header (resource info card).*resourceViewTitle
- Custom template to show instead of the current time range displayed in the title.<ahp-calendar-view [days]="days"></ahp-calendar-view>
days
{Day[]
} - List of day objects to display on the calendar.from
{DayJs
} - Date the calendar starts on.to
{DayJs
} - Date the calendar ends on.dayClick
- Emits when a specific resource date is clicked.To start a development build
npm run start
The app should be running at http://localhost:4200
.
FAQs
A calendar for Angular 2+ focused on displaying long intervals, with an infinite scrollable view.
We found that angular-holiday-planner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.