You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/toggle-group/img/multi-select.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/toggle-group/img/toggle-elements.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/toggle-group/img/toggle-form-view.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/toggle-group/img/toggle-table-view.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/toggle-group/img/toggle-typology.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/toggle-group/toggle-group.md
+19-9Lines changed: 19 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,14 @@ id: Toggle group
3
3
section: components
4
4
---
5
5
6
+
import '../components.css';
7
+
6
8
## Elements
7
9
Toggle items can consist of icons, text, or both. Styling of toggles is dependent on the background color.
8
10
9
-
<imgsrc="./img/elements-items.png"alt="Toggle group elements"width="1536"/>
11
+
<divclass="ws-docs-content-img">
12
+

13
+
</div>
10
14
11
15
## Usage
12
16
Toggle groups can be used when the user must select a single choice from a mutually exclusive set of options and can be used with or without icons.
@@ -29,20 +33,23 @@ Single select toggle groups are commonly used to switch between views including:
29
33
- a form view and a YAML view
30
34
- a card view and a table view
31
35
32
-
<imgsrc="./img/form-view.png"alt="Single select toggle group ex"width="1500"/>
33
-
34
-
<imgsrc="./img/topology-actions-2.png"alt="Single select toggle group ex2"width="1500"/>
36
+
<divclass="ws-docs-content-img">
37
+

38
+
</div>
35
39
36
-
1.**Zoom in**: By selecting this action, the view would zoom in by one increment.
37
-
2.**Fit to screen**: This action will fit the topology view to screen. After selection, the item will return to its default state, with a white background.
40
+
<divclass="ws-docs-content-img">
41
+

42
+
</div>
38
43
39
44
### Multi select toggle group
40
45
Use single multi select toggle groups when you want to select multiple attributes from a group. This is most commonly used for filtering a content view when there is a lot of space available.
41
46
42
47
#### Examples
43
48
Selecting an attribute will apply that filter to the table. In this case, only nodes that are “ready” are shown.
44
49
45
-
<imgsrc="./img/multi-select.png"alt="Multi select toggle group ex"width="1500"/>
50
+
<divclass="ws-docs-content-img">
51
+

52
+
</div>
46
53
47
54
### Toggle items
48
55
@@ -51,7 +58,10 @@ Use toggle items when you want to select a single action from a group. We recomm
51
58
#### Examples
52
59
Toggle items are most commonly used in canvas views, such as topology. Selecting a toggle item will switch the user into that “mode” or allow them to take that action.

63
+
</div>
55
64
56
65
1.**Zoom in**: This item changes the cursor into a zoom icon and allows the user to zoom, as long as that toggle is selected.
57
-
2.**Zoom cursor**: The cursor changes into a zoom icon and the user may exit that mode by selecting the “move” hand toggle item.
66
+
2.**Fit to screen**: This action will fit the topology view to screen. After selection, the item will return to its default state, with a white background.
67
+
3.**Zoom cursor**: The cursor changes into a zoom icon and the user may exit that mode by selecting the “move” hand toggle item.
0 commit comments