|
17 | 17 | .radio-section {
|
18 | 18 | display: flex;
|
19 | 19 | flex-direction: column;
|
| 20 | + margin-bottom: 2rem; |
20 | 21 | }
|
21 | 22 | </style>
|
22 | 23 | </head>
|
23 | 24 |
|
24 | 25 | <body style="background-color: var(--sapBackgroundColor);">
|
25 |
| - <ui5-title level="H1">ui5-radiobutton</ui5-title> |
26 |
| - <ui5-radiobutton id="rb1"></ui5-radiobutton> |
27 |
| - <ui5-radiobutton id="rb2" text="Option B"></ui5-radiobutton> |
28 |
| - <ui5-radiobutton id="rb3" wrap text="Option C"></ui5-radiobutton> |
29 |
| - <ui5-radiobutton id="rb4" disabled text="Option D"></ui5-radiobutton> |
30 |
| - <ui5-radiobutton id="truncatingRb" text="Long long long text that should truncate at some point">></ui5-radiobutton> |
31 |
| - <br/> |
32 |
| - <ui5-radiobutton id="wrappingRb" wrap text="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s." style="width: 300px"></ui5-radiobutton> |
33 | 26 |
|
34 |
| - <ui5-input id="field"></ui5-input> |
| 27 | + <ui5-title level="H1">Radios within a group</ui5-title><br> |
| 28 | + <div class="radio-section"> |
| 29 | + <ui5-title>Group1 - None pre-selection</ui5-title> |
| 30 | + <ui5-radiobutton id="testRbtn" text="N/A" disabled name="test"></ui5-radiobutton> |
| 31 | + <ui5-radiobutton id="testRbtn1" text="Male" name="test"></ui5-radiobutton> |
| 32 | + <ui5-radiobutton id="testRbtn2"text="Female" name="test"></ui5-radiobutton> |
| 33 | + </div> |
| 34 | + |
| 35 | + <section class="radio-section"> |
| 36 | + <ui5-title>Group 2</ui5-title> |
| 37 | + <ui5-radiobutton id="testRbtn11" name="test2" selected text="Selected A"></ui5-radiobutton> |
| 38 | + <ui5-radiobutton id="testRbtn12" name="test2" disabled text="Disabled B"></ui5-radiobutton> |
| 39 | + <ui5-radiobutton id="testRbtn13" name="test2" text="Standard C"></ui5-radiobutton> |
| 40 | + </section> |
35 | 41 |
|
36 | 42 | <section class="radio-section">
|
37 |
| - <ui5-title>ui5-radiobutton in group</ui5-title> |
| 43 | + <ui5-title>Group 3</ui5-title> |
| 44 | + <ui5-input id="tabField"></ui5-input> |
38 | 45 | <ui5-radiobutton id="groupRb1" name="a" selected text="Option A long long should shrink long long text text text text text text text text"></ui5-radiobutton>
|
39 | 46 | <ui5-radiobutton id="groupRb2" name="a" disabled text="Option C"></ui5-radiobutton>
|
40 |
| - <ui5-radiobutton id="groupRbReadOnly" name="a" readonly text="Option E"></ui5-radiobutton> |
41 | 47 | <ui5-radiobutton id="groupRb3" name="a" text="Option D"></ui5-radiobutton>
|
| 48 | + <ui5-radiobutton id="groupRbReadOnly" name="a" readonly text="Option E"></ui5-radiobutton> |
42 | 49 | </section>
|
43 | 50 |
|
44 | 51 | <section class="radio-section">
|
45 |
| - <ui5-title>ui5-radiobutton in group</ui5-title> |
| 52 | + <ui5-title>Group 4</ui5-title> |
46 | 53 | <ui5-radiobutton id="groupRb4" name="b" selected text="Option A long long should shrink long long text text text text text text text text"></ui5-radiobutton>
|
47 | 54 | <ui5-radiobutton id="groupRb5" name="b" disabled text="Option C"></ui5-radiobutton>
|
48 | 55 | <ui5-radiobutton id="groupRb6" name="b" text="Option D"></ui5-radiobutton>
|
49 | 56 | </section>
|
50 | 57 |
|
51 |
| - <div id="radioGroup" class="radio-section"> |
52 |
| - <ui5-title>Group of states</ui5-title> |
53 |
| - <ui5-label id="lblRadioGroup"></ui5-label> |
54 |
| - <ui5-label id="lblEventCounter"></ui5-label> |
| 58 | + <section id="radioGroup" class="radio-section"> |
| 59 | + <ui5-title>Group 4 - Value states</ui5-title> |
| 60 | + <ui5-label id="lblRadioGroup">N/A</ui5-label> |
| 61 | + <ui5-label id="lblEventCounter">0</ui5-label> |
55 | 62 | <ui5-radiobutton id="groupRb7" text="None selected" value-state="None" name="GroupB"></ui5-radiobutton>
|
56 | 63 | <ui5-radiobutton id="groupRb8" text="Warning" value-state="Warning" selected name="GroupB"></ui5-radiobutton>
|
57 | 64 | <ui5-radiobutton id="groupRb9"text="Error" value-state="Error" selected name="GroupB"></ui5-radiobutton>
|
58 | 65 | <ui5-radiobutton id="groupRb10" text="Default selected" value-state="None" selected name="GroupB"></ui5-radiobutton>
|
59 |
| - <ui5-radiobutton id="groupRb11" text="Other group selected" value-state="None" selected name="GroupBB"></ui5-radiobutton> |
60 |
| - </div> |
| 66 | + <ui5-radiobutton id="groupRb11" text="Radio From Another Group" value-state="None" selected name="GroupBB"></ui5-radiobutton> |
| 67 | + </section> |
61 | 68 |
|
| 69 | + <ui5-title level="H1">Standalone Radios Not Grouped</ui5-title> |
62 | 70 | <section>
|
63 |
| - <ui5-title>ui5-radiobutton states</ui5-title></p> |
64 | 71 | <ui5-radiobutton id="myRb6" selected text="Default"></ui5-radiobutton>
|
65 | 72 | <ui5-radiobutton id="myRb7" readonly text="read only"></ui5-radiobutton>
|
66 | 73 | <ui5-radiobutton id="myRb8" disabled text="disabled"></ui5-radiobutton>
|
|
72 | 79 | <ui5-radiobutton id="myRb14" value-state="Error" selected text="error"></ui5-radiobutton>
|
73 | 80 | </section>
|
74 | 81 |
|
| 82 | + |
| 83 | + <section class="radio-section"> |
| 84 | + <ui5-radiobutton id="rb1"></ui5-radiobutton> |
| 85 | + <ui5-radiobutton id="rb2" text="Option B"></ui5-radiobutton> |
| 86 | + <ui5-radiobutton id="rb3" wrap text="Option C"></ui5-radiobutton> |
| 87 | + <ui5-radiobutton id="rb4" disabled text="Option D"></ui5-radiobutton> |
| 88 | + <ui5-radiobutton id="truncatingRb" text="Long long long text that should truncate at some point">></ui5-radiobutton> |
| 89 | + <br/> |
| 90 | + <ui5-radiobutton id="wrappingRb" wrap text="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s." style="width: 300px"></ui5-radiobutton> |
| 91 | + <ui5-input id="field"></ui5-input> |
| 92 | + </section> |
| 93 | + |
75 | 94 | <p>*Params</p>
|
76 | 95 | <p>
|
77 | 96 | <ui5-label>- for compact add 'ui5-content-density-compact' class to any dom element</ui5-label>
|
|
0 commit comments