-
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.
template(input-group) Create input group template #338
- Loading branch information
1 parent
a5c2be5
commit c860c08
Showing
6 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
templates/angular/igx-ts/input-group/default/files/src/app/__path__/__name__.component.css
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,3 @@ | ||
.igx-date-picker { | ||
width: 200px; | ||
} |
7 changes: 7 additions & 0 deletions
7
templates/angular/igx-ts/input-group/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,7 @@ | ||
<div igxLayout igxLayoutDir="columns" igxLayoutItemAlign="center"> | ||
<p>igx-date-picker component.</p> | ||
<p>You can read more about configuring the igx-date-picker component in the | ||
<a href="https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/date-picker/README.md" target="_blank">README</a> or the | ||
<a href="https://www.infragistics.com/products/ignite-ui-angular/angular/components/date_picker.html" target="_blank">official documentation</a>.</p> | ||
<igx-datePicker [cancelButtonLabel]="'Close'"[todayButtonLabel]="'Today'" [value]="today"></igx-datePicker> | ||
</div> |
28 changes: 28 additions & 0 deletions
28
...ates/angular/igx-ts/input-group/default/files/src/app/__path__/__name__.component.spec.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,28 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { $(ClassName)Component } from './$(filePrefix).component'; | ||
import { NoopAnimationsModule } from '@angular/platform-browser/animations'; | ||
import { IgxDatePickerModule } from 'igniteui-angular'; | ||
|
||
describe('$(ClassName)Component', () => { | ||
let component: $(ClassName)Component; | ||
let fixture: ComponentFixture<$(ClassName)Component>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [$(ClassName)Component], | ||
imports: [IgxDatePickerModule, NoopAnimationsModule] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent($(ClassName)Component); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
13 changes: 13 additions & 0 deletions
13
templates/angular/igx-ts/input-group/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,13 @@ | ||
import { Component, ViewEncapsulation } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-$(filePrefix)', | ||
templateUrl: './$(filePrefix).component.html', | ||
styleUrls: ['./$(filePrefix).component.css'], | ||
encapsulation: ViewEncapsulation.Emulated, | ||
}) | ||
export class $(ClassName)Component { | ||
|
||
public today: Date = new Date(Date.now()); | ||
|
||
} |
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,18 @@ | ||
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 = "Date Picker"; | ||
this.description = "Basic IgxDatePicker"; | ||
this.dependencies = [ | ||
{ import: "IgxDatePickerModule", from: "igniteui-angular" } | ||
]; | ||
} | ||
} | ||
module.exports = new IgxDatePickerTemplate(); |
Empty file.