Comments (6)
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.
This doesn't work anymore
from reactstrap.
Cool, it works.
from reactstrap.
closing this. I added a note in V2 roadmap to cover this sort of documentation.
from reactstrap.
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.
Replacing it with the following worked for me.
<DropdownItem tag="span">
<Link href="/overview">
<NavLink>Overview</NavLink>
</Link>
</DropdownItem>
from reactstrap.
Related Issues (20)
- DropdownMenu end does not right align in navbar
- ERROR: "Class extends value undefined is not a constructor or null" after running Next.js 13 with app dir HOT 9
- Dropdown appered error useState
- Offcanvas example code not working HOT 1
- Dropdown component throws error if used with inNavbar property HOT 4
- DropdownItem looses menuitem role when disabled HOT 1
- Enhancement Request - ModalTitle component
- Tooltip arrows are not visible with Bootstrap 5.3.0 HOT 1
- [deps] Checking for breaking changes in Dependabot's PRs
- Problem to centralize CarouselCaption
- Shift+Tab Model with ShadowRoot
- Carousel: switching interval to false does not deactivate autoplay directly
- Padding issue when closing a modal and opening another at the same time
- FormGroup combined with InputGroup doesn't render properly due to mis-placed class name 'mb-3' HOT 1
- Preventing scroll is not working for nested Offcanvas
- Due to the type definition, UncontrolledAccordion cannot be used without toggle HOT 1
- ReactStrap Navbar is not printed to default pdf printer pf browsers
- Dropdown not working witn Reactstrap v8 and Bootstrap v4 HOT 1
- Use useId() hook in Popover
- It won't accept floating numbers when I add the minimum and maximum number limits. 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 reactstrap.