Comments (5)
@RunnerTx do you want to do something like this? https://codesandbox.io/s/r0jyry8pmq
What was changed is that you would need to specifically specify the item template, which can now be inherited from the Default template. Reason being different templates can be provided and it can know how to render elements under it.
from react-sidenav.
@wmira that is kind of what I was looking for, but I wanted the border-left color like the original example. When I try to modify your latest example, it puts the left border on all items (Nav, NavIcon, and NavText). Is there any way to just put the border-left around just Nav?
https://codesandbox.io/s/xpm02wzr6z
Thanks again.
from react-sidenav.
@RunnerTx i see what you mean. There seem to be a bug, what you have is correct but the problem is the className is getting applied to children. Will release a fix for this later. It is on the Default renderer. When it renders the NavIcon or NavText, it should not have passed the full props of the container, e.g. it is doing { ...this.props }.
from react-sidenav.
@RunnerTx latest build should now enable adding the left border indicator: https://codesandbox.io/s/yvwj8k9q6j
from react-sidenav.
@wmira - thanks. I verified the latest build resolves the issue.
from react-sidenav.
Related Issues (20)
- When using <ClickOutside> NavText does not collapse when menu is collapsed
- fix enzyme unit test
- nested menus more than 2 levels HOT 1
- Will be back supporting react-sideNav
- Suggestion: Have a search bar on the left nav HOT 1
- Create a Children Template Renderer for compact scheme
- Missing `withRR4` on latest version HOT 2
- βwithRR4β not working on latest version (3.1.3) HOT 6
- @typescript/react-sidenav using with typescript need help to embed it in my application HOT 3
- Warnings in console HOT 2
- how does it work with react-router? HOT 5
- [typescript] withRR4 type is not undefined HOT 3
- maxHeight: '1000px', // this should be enough HOT 1
- expandOnHover does not work with sub menus in non-collapsed state HOT 2
- Unable to see submenu on compact mode HOT 1
- Updated README / List of SideNav properties HOT 3
- Mobile/Responsive support? HOT 1
- getAttribute is not a function for nav elements with margins
- collapse submenu for item after select another item HOT 4
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-sidenav.