-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: (core) Add support for icon and select border types (#1555)
fix(core): adding the example for the types of select component
- Loading branch information
1 parent
daffb52
commit d23e000
Showing
12 changed files
with
181 additions
and
6 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
...e/component-docs/select/examples/select-types-example/select-types-example.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,50 @@ | ||
<div style="padding: 8px"> | ||
No Border | ||
<fd-select class="fd-select-example" | ||
[(value)]="selectValue1" | ||
[selectType]="'noborder'" | ||
[placeholder]="'Select with no border'"> | ||
<fd-option *ngFor="let option of options" | ||
[value]="option"> | ||
{{option}} | ||
</fd-option> | ||
</fd-select> | ||
</div> | ||
|
||
<div style="padding: 8px"> | ||
Split Border | ||
<fd-select class="fd-select-example" | ||
[(value)]="selectValue2" | ||
[selectType]="'splitborder'" | ||
[placeholder]="'select with split border'"> | ||
<fd-option *ngFor="let option of options" | ||
[value]="option"> | ||
{{option}} | ||
</fd-option> | ||
</fd-select> | ||
</div> | ||
|
||
<div style="padding: 8px"> | ||
Default Select | ||
<fd-select class="fd-select-example" | ||
[(value)]="selectValue3" | ||
[placeholder]="'Default select'"> | ||
<fd-option *ngFor="let option of options" | ||
[value]="option"> | ||
{{option}} | ||
</fd-option> | ||
</fd-select> | ||
</div> | ||
|
||
<div style="padding: 8px"> | ||
With Icon | ||
<fd-select class="fd-select-example" | ||
[(value)]="selectValue4" | ||
[glyph]="'filter'" | ||
[placeholder]="'Default select with icon'"> | ||
<fd-option *ngFor="let option of options" | ||
[value]="option"> | ||
{{option}} | ||
</fd-option> | ||
</fd-select> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
...e/component-docs/select/examples/select-types-example/select-types-example.component.scss
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 @@ | ||
.fd-select-example { | ||
margin-top: 16px; | ||
} |
25 changes: 25 additions & 0 deletions
25
...omponent-docs/select/examples/select-types-example/select-types-example.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,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { SelectTypesExampleComponent } from './select-types-example.component'; | ||
|
||
describe('SelectTypesExampleComponent', () => { | ||
let component: SelectTypesExampleComponent; | ||
let fixture: ComponentFixture<SelectTypesExampleComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ SelectTypesExampleComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(SelectTypesExampleComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
27 changes: 27 additions & 0 deletions
27
...ore/component-docs/select/examples/select-types-example/select-types-example.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,27 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'fd-select-types-example', | ||
templateUrl: './select-types-example.component.html', | ||
styleUrls: ['./select-types-example.component.scss'] | ||
}) | ||
export class SelectTypesExampleComponent implements OnInit { | ||
|
||
selectValue1: string; | ||
selectValue2: string; | ||
selectValue3: string; | ||
selectValue4: string; | ||
|
||
|
||
options: string[] = [ | ||
'Tomato', | ||
'Pineapple', | ||
'Apple' | ||
]; | ||
|
||
constructor() { } | ||
|
||
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
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
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
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
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
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
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
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