Comments (16)
Not at all. I've been pretty busy, just got around upgrading to 0.29 and realized it was now possible... πΆ I feel terrible, I'd like to invest a bit more time into the project, but I lift my hat off to @jquense and yourself for all the awesome work you've been doing. π π
from react-bootstrap.
Hey @mathieumg, this will be on the to-do list, just kinda low at the moment. Im not sure at this point the easiest way to get this functionality in as we have kinda coupled tabs to panels with the current implementation. Any thoughts on how the API for this should look would be appreciated!
from react-bootstrap.
We could almost cover this use case as a controlled component already:
<Nav bsStyle="tabs" activeKey={key} onSelect={handleSelect}>
<NavItem key={1}>NavItem 1 content</NavItem>
<NavItem key={2}>NavItem 2 content</NavItem>
<DropdownButton title="test">
<MenuItem key={3}>Action</MenuItem>
<MenuItem key={4}>Another action</MenuItem>
</DropdownButton>
</Nav>
<TabbedArea activeKey={key} onSelect={handleSelect}>
<TabPane key={1}>TabPane 1 content</TabPane>
<TabPane key={2}>TabPane 2 content</TabPane>
<TabPane key={3}>TabPane 3 content</TabPane>
<TabPane key={4}>TabPane 4 content</TabPane>
</TabbedArea>
Just need to not display the tab bar if there's no tabs in the tabbed area and select the current MenuItem
in the dropdown.
from react-bootstrap.
It looks like the docs are demonstrating this use case today: https://react-bootstrap.github.io/components.html#navbars. Is this still an issue for you?
from react-bootstrap.
That's navbars, no? This issue is about a similar behavior on tabs. Unless one has just become a specific case of the other. If that is the case, it might be relevant to add an example to do the same with tabs. (As is supported by Bootstrap: http://getbootstrap.com/javascript/#tabs)
from react-bootstrap.
Ah, I see tabs not navs.... Ya, we need to fix this.
from react-bootstrap.
Superceded by #526
from react-bootstrap.
Not fixed by #526
from react-bootstrap.
Moved to #1418.
from react-bootstrap.
This is now possible by combining https://react-bootstrap.github.io/components.html#tabs-custom-layout and https://react-bootstrap.github.io/components.html#navs-dropdown.
@react-bootstrap/collaborators Are you fine with me closing this? Do you think we would need to add an example of that use case in the docs?
from react-bootstrap.
Does that work? We should add it to the example if so.
from react-bootstrap.
Yeah I tested it quickly directly in the docs' editor. Could try to find the time to document it and write some tests around it even.
from react-bootstrap.
Would you mind if we keep this open until we have an example showing this, then?
from react-bootstrap.
Let's track this on #2115 instead.
from react-bootstrap.
uhjhjj
from react-bootstrap.
****
from react-bootstrap.
Related Issues (20)
- Alignment of button text in grid changes if href tag is set HOT 1
- Feature Request: Custom Anchor element for PageItem
- Button is not responsive inside the MODAL HOT 3
- defaultActiveKey and alwaysOpen not working properly at the same time HOT 1
- Error using components HOT 1
- NextJS <Link> giving error with react-bootstrap <Navbar.Link> HOT 1
- Docs - Components props tables are missing
- Tabs Component doesn't pass id attribute to underlying element HOT 1
- aria-label for DropdownButton HOT 2
- React Bootstrap doesn't let me set background color HOT 1
- Bug: OverlayTrigger doesn't hide after modal close. HOT 5
- Rendering children (Accordion) HOT 1
- Modal component stop working when closed HOT 6
- Keyboard input Tab + Shift escapes Modal's focus HOT 3
- ESC and Up/Down in Dropdown doesn't work when using the native Bootstrap HOT 2
- Suggest adding 'use clientβ for all the react-bootstrap component HOT 4
- Question: How to enable right-to-left (RTL) while using bootstrap SCSS instead of CSS to customize styles HOT 1
- EventKey in callback function onSelect of Tabs component does not match type of EventKey given to an individual Tab component HOT 1
- Modal data-bs-theme dark does not change text color
- Typescript fails with ESM + Node16 (NodeNext) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-bootstrap.