Skip to content

Commit

Permalink
template(input-group) Create input group template #338
Browse files Browse the repository at this point in the history
  • Loading branch information
PlamenaMiteva committed Aug 10, 2018
1 parent a5c2be5 commit c860c08
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.igx-date-picker {
width: 200px;
}
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>
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();
});
});
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());

}
18 changes: 18 additions & 0 deletions templates/angular/igx-ts/input-group/default/index.ts
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.

0 comments on commit c860c08

Please sign in to comment.