Skip to content

Commit

Permalink
feat(segment): make the document positive
Browse files Browse the repository at this point in the history
  • Loading branch information
Takuma Kira committed Sep 16, 2020
1 parent 6f39c22 commit 52249ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@ export namespace Components {
*/
"scrollable": boolean;
/**
* If `false`, the gesture to drag the indicator between the buttons will be disabled.
* If `true`, users will be able to swipe between segment buttons to activate them.
*/
"swipeGesture": boolean;
/**
Expand Down Expand Up @@ -5357,7 +5357,7 @@ declare namespace LocalJSX {
*/
"scrollable"?: boolean;
/**
* If `false`, the gesture to drag the indicator between the buttons will be disabled.
* If `true`, users will be able to swipe between segment buttons to activate them.
*/
"swipeGesture"?: boolean;
/**
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/segment/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ export default defineComponent({
| `disabled` | `disabled` | If `true`, the user cannot interact with the segment. | `boolean` | `false` |
| `mode` | `mode` | The mode determines which platform styles to use. | `"ios" \| "md"` | `undefined` |
| `scrollable` | `scrollable` | If `true`, the segment buttons will overflow and the user can swipe to see them. In addition, this will disable the gesture to drag the indicator between the buttons in order to swipe to see hidden buttons. | `boolean` | `false` |
| `swipeGesture` | `swipe-gesture` | If `false`, the gesture to drag the indicator between the buttons will be disabled. | `boolean` | `true` |
| `swipeGesture` | `swipe-gesture` | If `true`, users will be able to swipe between segment buttons to activate them. | `boolean` | `true` |
| `value` | `value` | the value of the segment. | `null \| string \| undefined` | `undefined` |


Expand Down
2 changes: 1 addition & 1 deletion core/src/components/segment/segment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Segment implements ComponentInterface {
@Prop() scrollable = false;

/**
* If `false`, the gesture to drag the indicator between the buttons will be disabled.
* If `true`, users will be able to swipe between segment buttons to activate them.
*/
@Prop() swipeGesture = true;

Expand Down

0 comments on commit 52249ca

Please sign in to comment.