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: docs/api/segment-content.md
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,13 @@
2
2
title: "ion-segment-content"
3
3
---
4
4
5
+
import Props from '@ionic-internal/component-api/v8/segment-content/props.md';
6
+
import Events from '@ionic-internal/component-api/v8/segment-content/events.md';
7
+
import Methods from '@ionic-internal/component-api/v8/segment-content/methods.md';
8
+
import Parts from '@ionic-internal/component-api/v8/segment-content/parts.md';
9
+
import CustomProps from '@ionic-internal/component-api/v8/segment-content/custom-props.mdx';
10
+
import Slots from '@ionic-internal/component-api/v8/segment-content/slots.md';
11
+
5
12
<head>
6
13
<title>ion-segment-content: Display control element for swipeable segments</title>
7
14
<metaname="description"content="ion-segment-contents are wrapper elements used to control the display of child elements when using swipeable segments." />
@@ -13,4 +20,33 @@ import EncapsulationPill from '@components/page/api/EncapsulationPill';
13
20
14
21
Segment content is a wrapper element used to control the display of child elements when using swipeable segments. Segment content elements are children of a single
15
22
[segment view](./segment-view.md) instance that is linked to a [segment](./segment.md). See our [swipeable segments](./segment.md#swipeable-segments) documentation
16
-
for more information on how to use `ion-segment-content`s.
23
+
for more information on how to use segment contents.
24
+
25
+
## Usage
26
+
27
+
Each `ion-segment-content` needs a unique `id` attribute. This will be used to link the segment content to a segment button via the button's
Copy file name to clipboardExpand all lines: docs/api/segment-view.md
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,10 @@ title: "ion-segment-view"
4
4
5
5
import Props from '@ionic-internal/component-api/v8/segment-view/props.md';
6
6
import Events from '@ionic-internal/component-api/v8/segment-view/events.md';
7
+
import Methods from '@ionic-internal/component-api/v8/segment-view/methods.md';
8
+
import Parts from '@ionic-internal/component-api/v8/segment-view/parts.md';
9
+
import CustomProps from '@ionic-internal/component-api/v8/segment-view/custom-props.mdx';
10
+
import Slots from '@ionic-internal/component-api/v8/segment-view/slots.md';
7
11
8
12
<head>
9
13
<title>ion-segment-view: Controller element for swipeable segments</title>
@@ -15,12 +19,22 @@ import EncapsulationPill from '@components/page/api/EncapsulationPill';
15
19
<EncapsulationPilltype="shadow" />
16
20
17
21
Segment view is a wrapper element that links a group of [segment contents](./segment-content.md) to a [segment](./segment.md) when using swipeable segments.
18
-
See our [swipeable segments](./segment.md#swipeable-segments) documentation for more information on how to use `ion-segment-view`s.
22
+
See our [swipeable segments](./segment.md#swipeable-segments) documentation for more information on how to use segment views.
Copy file name to clipboardExpand all lines: docs/api/segment.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,11 @@ Each [segment button](./segment-button.md) can be associated with a [segment con
55
55
when the segment is active. With this approach, each segment's content can be swiped or scrolled between and the segment will be updated
56
56
to reflect the currently visible content.
57
57
58
-
If no initial `value` is assigned to the `ion-segment` when using swipeable segment, the segment will default to the value of the first segment button.
58
+
:::warning
59
+
If no initial `value` is assigned to the `ion-segment` when using swipeable segments, the segment will default to the value of the first segment button.
59
60
60
61
Segment buttons cannot be disabled when used with swipeable segments.
62
+
:::
61
63
62
64
import Swipeable from '@site/static/usage/v8/segment/swipeable/index.md';
0 commit comments