0.0.9 • Published 8 years ago

ng2-ui-kit v0.0.9

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Quick Start

1. Install

ng2-ui-kit is available on npm package manager.

npm install ng2-ui-kit --save

2. Import

There's only one import that's need to be done since Angular NgModule pattern.

// app.module.ts

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { UI_KIT } from 'ng2-ui-kit';

@NgModule({
  declarations: [
    AppComponent,
    UI_KIT
  ],
  imports: [
    BrowserModule,
    CommonModule,
    FormsModule
  ],
  entryComponents: [AppComponent],
  bootstrap: [AppComponent]
})
export class AppModule { }

After that, you'll have ng2-ui-kit available app-wide.

Modules

Calendar (ui-kit-calendar)

Usage

<ui-kit-calendar [(ngModel)]="obj.date"></ui-kit-calendar>

Input Options

  • [opened] boolean If true, calendar will be init as opened. Default false
  • [format] moment.js format If specified, model value will be customly formatted. Default: 'YYYY-MM-DD'
  • [viewFormat] moment.js format Rendeder value format. Default 'D MMMM YYYY'
  • [firstWeekdaySunday] boolean If true, days will be rendered as first weekday Sunday. Default false

Example Form

screen shot 2016-09-07 at 17 17 08

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago