Skip to content

Commit

Permalink
feat: Adding a date picker template for Ignite UI for Angular
Browse files Browse the repository at this point in the history
  • Loading branch information
dafo committed Feb 7, 2018
1 parent 03a84b6 commit 118c7e7
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div>
<p>igx-date-picker component. You can read more about configuring the igx-date-picker component
<a href="https://github.com/IgniteUI/igniteui-angular/blob/master/src/date-picker/README.md" target="_blank">here</a>.</p>
<igx-datePicker [cancelButtonLabel]="'Close'"[todayButtonLabel]="'Today'"></igx-datePicker>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Component, OnInit, ViewEncapsulation } from "@angular/core";

@Component({
selector: 'app-home',
templateUrl: './$(filePrefix).component.html',
encapsulation: ViewEncapsulation.None,
})
export class $(ClassName)Component implements OnInit {

constructor() { }

public ngOnInit() {
}
}
16 changes: 16 additions & 0 deletions templates/angular/igx-ts/date-picker/default/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { IgniteUIForAngularTemplate } from "../../../../../lib/templates/IgniteUIForAngularTemplate";

class IgxDatePickerTemplate extends IgniteUIForAngularTemplate {
constructor() {
super(__dirname);
this.components = ["Date Picker"];
this.controlGroup = "Scheduling";
this.listInComponentTemplates = true;
this.id = "date-picker";
this.projectType = "igx-ts";
this.name = "DatePicker";
this.description = "Basic IgxDatePicker";
this.dependencies = ["IgxDatePickerModule"];
}
}
module.exports = new IgxDatePickerTemplate();
14 changes: 14 additions & 0 deletions templates/angular/igx-ts/date-picker/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

import { BaseComponent } from "../../../../lib/BaseComponent";

class IgxDatePickerComponent extends BaseComponent {
/**
*
*/
constructor() {
super(__dirname);
this.name = "DatePicker";
this.group = "Scheduling";
}
}
module.exports = new IgxDatePickerComponent();
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
Expand All @@ -12,9 +13,10 @@ import { HomeComponent } from './home/home.component';
HomeComponent
],
imports: [
BrowserModule,
BrowserModule,
BrowserAnimationsModule,
AppRoutingModule,
IgxButtonModule
IgxButtonModule
],
providers: [],
bootstrap: [AppComponent]
Expand Down

0 comments on commit 118c7e7

Please sign in to comment.