Skip to content

fix: correct TabbedPane swipe and close method names - #1190

Open
laurenic0l wants to merge 4 commits into
mainfrom
1164-tabbedpane-fix
Open

laurenic0l wants to merge 4 commits into
mainfrom
1164-tabbedpane-fix

Conversation

@laurenic0l

Copy link
Copy Markdown
Contributor

Closes #1164

Corrections to the TabbedPane article:

  • setSwipable → setSwipeable and setSwipableWithMouse → setSwipeWithMouse
  • setCloseable → setClosable, and the property renamed to Closable
  • Fixed the "swipping" typo
  • Removed Key from the Tab properties list and renumbered. getKey() is package-private with no setter, so it isn't publicly readable or writable, which the section's lead-in claims of everything listed.

Two small extras while I was in the file: dropped "keys" from the frontmatter description, since it made the same claim in the meta description, and finished an incomplete sentence in the Inserting a Tab section.

Comment thread docs/docs/components/tabbed-pane.md
Comment thread docs/docs/components/tabbed-pane.md
2. **Tooltip(`String`)**: The tooltip text that is associated with the `Tab`, which will be displayed when the cursor hovers over the `Tab`.

3. **Tooltip(`String`)**: The tooltip text that is associated with the `Tab`, which will be displayed when the cursor hovers over the `Tab`.
3. **Enabled(`boolean`)**: Represents whether the `Tab` is currently enabled or not. Can be modified with the `setEnabled(boolean enabled)` method.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] <Google.Timeless> reported by reviewdog 🐶
Avoid time-based words like 'currently' in product documentation.

3. **Enabled(`boolean`)**: Represents whether the `Tab` is currently enabled or not. Can be modified with the `setEnabled(boolean enabled)` method.

4. **Enabled(`boolean`)**: Represents whether the `Tab` is currently enabled or not. Can be modified with the `setEnabled(boolean enabled)` method.
4. **Closable(`boolean`)**: Represents whether the `Tab` can be closed. Can be modified with the `setClosable(boolean closable)` method. This will add a close button on the `Tab` which can be clicked on by the user, and fires a removal event. The `TabbedPane` component dictates how to handle the removal.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] <Google.Colons> reported by reviewdog 🐶
'Represents' should be in lowercase.

laurenic0l and others added 2 commits October 2, 2026 10:32
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## Usages {#usages}

The `TabbedPane` class is a gives developers a powerful tool for organizing and presenting multiple tabs or sections within a UI. Here are some typical scenarios where you might utilize a `TabbedPane` in your application:
The `TabbedPane` class is gives developers a powerful tool for organizing and presenting multiple tabs or sections within a UI. Here are some typical scenarios where you might use a `TabbedPane` in your application:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] <Google.WordListCase> reported by reviewdog 🐶
Use 'app' instead of 'application'.

Suggested change
The `TabbedPane` class is gives developers a powerful tool for organizing and presenting multiple tabs or sections within a UI. Here are some typical scenarios where you might use a `TabbedPane` in your application:
The `TabbedPane` class is gives developers a powerful tool for organizing and presenting multiple tabs or sections within a UI. Here are some typical scenarios where you might use a `TabbedPane` in your app:

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1. **Text(`String`)**: The text that will be displayed as a title for the `Tab` within the `TabbedPane`. This is also referred to as the title via the `getTitle()` and `setTitle(String title)` methods.

2. **Text(`String`)**: The text that will be displayed as a title for the `Tab` within the `TabbedPane`. This is also referred to as the title via the `getTitle()` and `setTitle(String title)` methods.
2. **Tooltip(`String`)**: The tooltip text that's associated with the `Tab`, which will be displayed when the cursor hovers over the `Tab`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] <Google.Colons> reported by reviewdog 🐶
'The' should be in lowercase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TabbedPane article documents swipe and close methods under names that don't exist

3 participants