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

nativescript-nbmaterial-calendar

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-nbmaterial-calendar

A nativescript implementation of calendar view/picker. For iOS and Android

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Nativescript implementation of the Material Calendar picker

The module implement Material calendar on both platforms iOS and Android. The calendar implements slide transition effects. The pager lets you change months using a swipe.

export function selectDate(e) {
    console.log("DATE SELECTED ", e.date, e.selected);
}  
<Page xmlns="http://schemas.nativescript.org/tns.xsd"  xmlns:cal="nativescript-nbmaterial-calendar">
 		
				<cal:CalendarMonthLayout dayTapped="selectDate" multiple="true"  >
					<cal:CalendarAction action="previous" text="chevron_left"/>
					<cal:CalendarTitle/>
					<cal:CalendarAction action="next" text="chevron_right"/>
				</cal:CalendarMonthLayout>
</Page>

}

multiple parameter lets you pick multiple date in the calendar. CalendarTitle, CalendarAction extends labels. So you can use font library like font awesome.

The calendarmonthlayout has this interface:


export declare class CalendarMonthLayout extends Layout {
    public static dayTappedEvent: string = "dayTapped";
    public static monthChangedEvent: string = "monthChanged";
    date: Date;
    multiple: boolean;
    selected: Date | Date[];
    next();
    previous();
}

export interface DayTappedEvent extends EventData {
    readonly tapped: Date;
    selected: Date | Date[];
    view: CalendarDay;
}

See all modules here

Keywords

FAQs

Package last updated on 24 Feb 2018

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