-
Notifications
You must be signed in to change notification settings - Fork 132
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
Showing
107 changed files
with
764 additions
and
23 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { RadioExamplesComponent } from './radio-example.component'; | ||
import { RadioExampleComponent } from './radio-example.component'; | ||
import { RadioFormGroupExampleComponent } from './radio-form-group-example.component'; | ||
import { RadioTruncationExampleComponent } from './radio-truncation-example.component'; | ||
|
||
export * from './radio-example.component'; | ||
export * from './radio-form-group-example.component'; | ||
|
||
export const examples = [RadioExamplesComponent, RadioFormGroupExampleComponent]; | ||
export const examples = [RadioExampleComponent, RadioFormGroupExampleComponent, RadioTruncationExampleComponent]; |
45 changes: 45 additions & 0 deletions
45
libs/docs/core/radio/examples/radio-truncation-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,45 @@ | ||
<fieldset fd-fieldset style="max-width: 400px"> | ||
<legend fd-form-legend>Text Truncation in Radio buttons</legend> | ||
<fd-form-group> | ||
<div fd-form-item> | ||
<fd-radio-button value="valt1" [id]="'radio-t-1'" name="radio-truncate-1" [(ngModel)]="optionVariable"> | ||
<b>Default text wrapping behaviour</b> Option One Lorem ipsum dolor sit amet consectetur adipisicing | ||
elit. Odit nam totam maxime quis, sed molestiae quisquam eveniet ratione corporis quam libero omnis | ||
dignissimos delectus error inventore ullam sequi. Dolores, quaerat? Lorem ipsum dolor sit, amet | ||
consectetur adipisicing elit. Placeat sit dolor cumque. Doloremque repellat dicta, libero neque dolor | ||
aliquam. Eius omnis libero aliquam quisquam magni harum aliquid officia maxime dignissimos! | ||
</fd-radio-button> | ||
</div> | ||
<div fd-form-item> | ||
<fd-radio-button | ||
value="valt2" | ||
[id]="'radio-t-2'" | ||
name="radio-truncate-1" | ||
[(ngModel)]="optionVariable" | ||
wrapLabel | ||
> | ||
<b>Wrapping behaviour</b> Option Two Lorem ipsum dolor sit amet consectetur adipisicing elit. Odit nam | ||
totam maxime quis, sed molestiae quisquam eveniet ratione corporis quam libero omnis dignissimos | ||
delectus error inventore ullam sequi. Dolores, quaerat? Lorem ipsum dolor sit, amet consectetur | ||
adipisicing elit. Placeat sit dolor cumque. Doloremque repellat dicta, libero neque dolor aliquam. Eius | ||
omnis libero aliquam quisquam magni harum aliquid officia maxime dignissimos! | ||
</fd-radio-button> | ||
</div> | ||
<div fd-form-item> | ||
<fd-radio-button | ||
value="valt3" | ||
[id]="'radio-t-3'" | ||
name="radio-truncate-1" | ||
[(ngModel)]="optionVariable" | ||
wrapLabel | ||
valignLabel="top" | ||
> | ||
<b>Wrapping behaviour, top aligned</b> Option Three Lorem ipsum dolor sit amet consectetur adipisicing | ||
elit. Odit nam totam maxime quis, sed molestiae quisquam eveniet ratione corporis quam libero omnis | ||
dignissimos delectus error inventore ullam sequi. Dolores, quaerat? Lorem ipsum dolor sit, amet | ||
consectetur adipisicing elit. Placeat sit dolor cumque. Doloremque repellat dicta, libero neque dolor | ||
aliquam. Eius omnis libero aliquam quisquam magni harum aliquid officia maxime dignissimos! | ||
</fd-radio-button> | ||
</div> | ||
</fd-form-group> | ||
</fieldset> |
26 changes: 26 additions & 0 deletions
26
libs/docs/core/radio/examples/radio-truncation-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,26 @@ | ||
import { Component } from '@angular/core'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { | ||
FieldsetComponent, | ||
FormGroupComponent, | ||
FormItemComponent, | ||
FormLegendDirective | ||
} from '@fundamental-ngx/core/form'; | ||
import { RadioButtonComponent } from '@fundamental-ngx/core/radio'; | ||
|
||
@Component({ | ||
selector: 'fd-radio-truncation-example', | ||
templateUrl: './radio-truncation-example.component.html', | ||
standalone: true, | ||
imports: [ | ||
FieldsetComponent, | ||
FormLegendDirective, | ||
FormGroupComponent, | ||
FormItemComponent, | ||
RadioButtonComponent, | ||
FormsModule | ||
] | ||
}) | ||
export class RadioTruncationExampleComponent { | ||
optionVariable = 'valt1'; | ||
} |
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
Oops, something went wrong.