Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
angular-calendar
Advanced tools
A calendar component for angular 4.0+ that can display events on a month, week or day view
https://mattlewis92.github.io/angular-calendar/
A calendar component for Angular 4.0+ that can display events on a month, week or day view. The successor of angular-bootstrap-calendar.
First install through npm:
npm install --save angular-calendar
Next include the CSS file somewhere into your app:
node_modules/angular-calendar/dist/css/angular-calendar.css
Finally import the calendar module into your apps module:
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { CalendarModule } from 'angular-calendar';
@NgModule({
imports: [
BrowserAnimationsModule, // angular 4.0+ only
CalendarModule.forRoot()
]
})
export class MyModule {}
Then you can use the mwl-calendar-month-view
, mwl-calendar-week-view
and mwl-calendar-day-view
components in your app. For a full e2e example see the kitchen sink demo.
You can find quick start examples for all common module bundlers in the build-tool-examples folder.
<script src="node_modules/angular-calendar/dist/umd/angular-calendar.js"></script>
<script>
// everything is exported angularCalendar namespace
</script>
See this comment for how to use with Universal.
To see all available API options, take a look at the auto generated documentation. You may find it helpful to view the examples on the demo page.
Yes.
See the examples list.
No component styles are included with each component to make it easier to override them (otherwise you’d have to use !important
on every rule that you customised). Thus you need to import the CSS file separately from node_modules/angular-calendar/dist/css/angular-calendar.css
.
When building the calendar some parts were found to be reusable so they were split out into their own modules. Only the bare minimum that is required is included with the calendar, there is no extra code than if there were no dependencies. date-fns
especially only imports directly the functions it needs and not the entire library.
Build your own component to replace that view, and use it in place of the one this library provides. It’s impossible to provide a calendar component that meets everyones use cases, hopefully though at least some of the day / week / month view components provided can be customised with the calendars API enough to be of some use to most projects.
As there are so many events to show on each month, it doesn’t provide a lot of value and is just an extra burden to maintain. There is nothing to stop someone from building a new lib like angular-calendar-year-view
though ;)
https://github.com/mattlewis92/angular-bootstrap-calendar
npm install
while current directory is this repoRun npm start
to start a development server on port 8000 with auto reload + tests.
Run npm test
to run tests once or npm run test:watch
to continually run tests.
npm run release
MIT
FAQs
A calendar component for angular 15.0+ that can display events on a month, week or day view
The npm package angular-calendar receives a total of 95,240 weekly downloads. As such, angular-calendar popularity was classified as popular.
We found that angular-calendar demonstrated a healthy version release cadence and project activity because the last version was released less than 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
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.