GithubHelp home page GithubHelp logo

Comments (6)

eddywashere avatar eddywashere commented on May 5, 2024 22

Looks like I didn't add the documentation for that. You should be able to do something like this:

<DropdownItem tag={Link} to="/me">text here</DropdownItem>

Most components have a tag prop to customize which element/component to use when rendering.

from reactstrap.

ericshuk avatar ericshuk commented on May 5, 2024 7

This doesn't work anymore

from reactstrap.

zzswang avatar zzswang commented on May 5, 2024

Cool, it works.

from reactstrap.

eddywashere avatar eddywashere commented on May 5, 2024

closing this. I added a note in V2 roadmap to cover this sort of documentation.

from reactstrap.

AbhaysinghBhosale avatar AbhaysinghBhosale commented on May 5, 2024

If I put Link inside dropdownitem, it will not work in IE11. It's ok in chrome.

Any ideas?

import {Link} from 'react-router';

     <Dropdown isOpen={this.state.isAdminMenuOpen} toggle={this.toggleAdminMenu.bind(this)}>
            <DropdownToggle>
              <Button color="secondary"><i className="icon-cog" /></Button>
            </DropdownToggle>
            <DropdownMenu right>
              <DropdownItem><Link to="/me"> Account </Link></DropdownItem>
              <DropdownItem><Link to="/admin">Admin</Link></DropdownItem>
              <DropdownItem divider/>
              <DropdownItem onClick={this.props.actions.logout}>Logout</DropdownItem>
            </DropdownMenu>
          </Dropdown>

How can we send the props with the link like this.

{Resource.LBL_Policies}

this is working in chrome but not in IE

from reactstrap.

mvgrimes avatar mvgrimes commented on May 5, 2024

Replacing it with the following worked for me.

      <DropdownItem tag="span">
          <Link href="/overview">
                <NavLink>Overview</NavLink>
          </Link>
    </DropdownItem>

from reactstrap.

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.