-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding a date picker template for Ignite UI for Angular
- Loading branch information
Showing
5 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
templates/angular/igx-ts/date-picker/default/files/src/app/__path__/__name__.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
14 changes: 14 additions & 0 deletions
14
templates/angular/igx-ts/date-picker/default/files/src/app/__path__/__name__.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters