Git Product home page Git Product logo

Comments (16)

mathieumg avatar mathieumg commented on April 27, 2024 1

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.

pieterv avatar pieterv commented on April 27, 2024

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.

stevoland avatar stevoland commented on April 27, 2024

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.

mtscout6 avatar mtscout6 commented on April 27, 2024

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.

mathieumg avatar mathieumg commented on April 27, 2024

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.

mtscout6 avatar mtscout6 commented on April 27, 2024

Ah, I see tabs not navs.... Ya, we need to fix this.

from react-bootstrap.

AlexKVal avatar AlexKVal commented on April 27, 2024

Superceded by #526

from react-bootstrap.

mtscout6 avatar mtscout6 commented on April 27, 2024

Not fixed by #526

from react-bootstrap.

taion avatar taion commented on April 27, 2024

Moved to #1418.

from react-bootstrap.

mathieumg avatar mathieumg commented on April 27, 2024

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.

taion avatar taion commented on April 27, 2024

Does that work? We should add it to the example if so.

from react-bootstrap.

mathieumg avatar mathieumg commented on April 27, 2024

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.

taion avatar taion commented on April 27, 2024

Would you mind if we keep this open until we have an example showing this, then?

from react-bootstrap.

taion avatar taion commented on April 27, 2024

Let's track this on #2115 instead.

from react-bootstrap.

auregnamian avatar auregnamian commented on April 27, 2024

uhjhjj

from react-bootstrap.

lailaafrin avatar lailaafrin commented on April 27, 2024

****

from react-bootstrap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.