-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lkramarov
committed
Aug 16, 2019
1 parent
3c4b077
commit 8efd084
Showing
3 changed files
with
39 additions
and
30 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,39 @@ | ||
|
||
<!--<theme-picker></theme-picker>--> | ||
|
||
<mc-radio-group class="example-radio-group" [(ngModel)]="favoriteFruit"> | ||
<mc-radio-button class="example-radio-button" *ngFor="let season of fruits" [value]="season"> | ||
{{season}} | ||
</mc-radio-button> | ||
</mc-radio-group> | ||
<div class="dev-container"> | ||
<mc-radio-group | ||
class="example-radio-group" | ||
[(ngModel)]="favoriteFruit" | ||
(change)="onChange($event)"> | ||
<mc-radio-button class="example-radio-button" *ngFor="let season of fruits" [value]="season"> | ||
{{season}} | ||
</mc-radio-button> | ||
</mc-radio-group> | ||
|
||
<div class="example-selected-value">Your favorite fruit is: {{favoriteFruit}}</div> | ||
<div class="example-selected-value">Your favorite fruit is: {{favoriteFruit}}</div> | ||
|
||
<p class="mc-headline">Disabled buttons</p> | ||
<p class="mc-headline">Disabled buttons</p> | ||
|
||
<mc-radio-group | ||
class="example-radio-group" | ||
name="my_options" | ||
[disabled]="isDisabled"> | ||
<mc-radio-button class="example-radio-button" value="option_1">Option 1</mc-radio-button> | ||
<mc-radio-button class="example-radio-button" value="option_2">Option 2</mc-radio-button> | ||
<mc-radio-button class="example-radio-button" value="option_3">Option 3</mc-radio-button> | ||
</mc-radio-group> | ||
<mc-radio-group | ||
class="example-radio-group" | ||
name="my_options" | ||
[disabled]="isDisabled"> | ||
<mc-radio-button class="example-radio-button" value="option_1">Option 1</mc-radio-button> | ||
<mc-radio-button class="example-radio-button" value="option_2">Option 2</mc-radio-button> | ||
<mc-radio-button class="example-radio-button" value="option_3">Option 3</mc-radio-button> | ||
</mc-radio-group> | ||
|
||
<p class="mc-headline">Disabled selected buttons</p> | ||
<mc-radio-group class="example-radio-group"> | ||
<mc-radio-button | ||
class="example-radio-button" | ||
*ngFor="let data of selectionList" | ||
name="data.value" | ||
[disabled]="true" | ||
[checked]="data.selected" | ||
[value]="data.value"> | ||
{{data.name}} | ||
</mc-radio-button> | ||
</mc-radio-group> | ||
<p class="mc-headline">Disabled selected buttons</p> | ||
<mc-radio-group class="example-radio-group"> | ||
<mc-radio-button | ||
class="example-radio-button" | ||
*ngFor="let data of selectionList" | ||
name="data.value" | ||
[disabled]="true" | ||
[checked]="data.selected" | ||
[value]="data.value"> | ||
{{data.name}} | ||
</mc-radio-button> | ||
</mc-radio-group> | ||
</div> |