1.2.0 • Published 7 years ago

ionic-conference-calendar-header v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Ionic Conference Calendar Header

A sweet conference style calendar.

default days view

months view

Setup

Install

npm install ionic-conference-calendar-header

Add component to declarations

import { IonicConferenceCalendarHeader } from 'ionic-conference-calendar-header'

@NgModule({
  declarations: [
    IonicConferenceCalendarHeader
  ]
})
export class AppModule {}

Add to your page

<!-- pretty-header is what gives it that gradient. that's not part of the component -->
<ion-header class="pretty-header">
  <ion-navbar>
    <button ion-button menuToggle>
      <ion-icon name="menu"></ion-icon>
    </button>
  </ion-navbar>

  <ionic-conference-calendar-header (change)="onDateChanged($event)"
                                    [date]="activeDate"
                                    [dates]="eventDates">
  </ionic-conference-calendar-header>
</ion-header>

Import the stylesheet

(this changes the selected date color to your primary color)

@import '../node_modules/ionic-conference-calendar-header/src/ionicConferenceCalendarHeader.component.scss';

API

NameData TypeDescriptionExample
Inputdatestring | DateThe date to select in the header. The date must already exist in the given dates."2018-01-01"new Date()
InputdatesArray\<string | Date>All of the possible dates."2018-01-01", "2018-01-02", new Date(), new Date()
InputviewstringOptional view type setting. Possible values are "days" and "months". Defaults to days"days""months"
(Output)changestring"2018-01-01"