Comments (5)
Hi,
First of all refer to the styling document which shows the HTML structure
of the tree nodes:
https://angular2-tree.readme.io/docs/styling
You can also look at the source code of tree.component.ts and
tree-node.component.ts to see the existing style.
The tree components' encapsulation mode is set to none, so the easiest
would be to give a class or ID of your own above the tree, and style
everything scoped to that class / ID - then you will override the tree's
style.
- Adam Klein http://il.linkedin.com/in/adamklein500
- CTO @ 500Tech.com http://500tech.com/
- AngularJS, ReactJS, NodeJS
- Development, consulting, training and public speaking
- (+972) 52 747 5633
On Tue, Sep 27, 2016 at 10:19 PM, carmenbranje [email protected]
wrote:
Whats the best approach to styling the tree?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#63, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA2SSiUs0-tlRLmfTU6KUic5MISial1mks5quWwrgaJpZM4KIDTg
.
from angular-tree-component.
One issue I'm having is with the hover states with the nodes.
Since lower level nodes are children of higher level nodes, the hover states remains on, on the parent even when I'm hovering over a child node. So if I have a highlighting (backkground-color) for a node, and I hover over the root and then move down the the next level node, both the root and the child node stays highlighted.
I guess this is more of a css issue than an issue with this component?
from angular-tree-component.
Your problem is that you have a css rule like this:
.tree-node:hover { etc. }
when you want a rule like this:
.node-content-wrapper:hover { etc. }
On Sep 28, 2016, at 2:10 PM, carmenbranje [email protected] wrote:
One issue I'm having is with the hover states with the nodes.
Since lower level nodes are children of higher level nodes, the hover states remains on, on the parent even when I'm hovering over a child node. So if I have a highlighting (backkground-color) for a node, and I hover over the root and then move down the the next level node, both the root and the child node stays highlighted.
I guess this is more of a css issue than an issue with this component?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #63 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AA0lQO8hQNc5ErDcLUR-QTqK7Mq37S87ks5quq2WgaJpZM4KIDTg.
from angular-tree-component.
I see what you mean, but there's also the chevron to the left of the node-content-wrapper. How could I make the entire "node" background a certain color. I'll have to get the node-content-wrapper and span tags that hold the chevron to expand to take up all the tree-node.
from angular-tree-component.
There's actually a PR that adds another wrapper around both.
But it is not backwards compatible.
Since this is at least the second time it's bothering someone, I might
merge it and make a breaking change version
- Adam Klein http://il.linkedin.com/in/adamklein500
- CTO @ 500Tech.com http://500tech.com/
- AngularJS, ReactJS, NodeJS
- Development, consulting, training and public speaking
- (+972) 52 747 5633
On Wed, Sep 28, 2016 at 9:51 PM, carmenbranje [email protected]
wrote:
I see what you mean, but there's also the chevron to the left of the
node-content-wrapper. How could I make the entire "node" background a
certain color. I'll have to get the node-content-wrapper and span tags that
hold the chevron to expand to take up all the tree-node.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#63 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA2SSnntYrdT6VA6F3YV4UnioJiTJMDtks5qurdFgaJpZM4KIDTg
.
from angular-tree-component.
Related Issues (20)
- Missing documentation for how to use checkbox tri-state in a custom template HOT 2
- expandAll() method is very slow with large objects,even if virtual scroll is true HOT 1
- Typo in the template section of the documentation HOT 1
- selecting parent node does not select children with hasChildren true HOT 1
- No event for checkbox de-selection
- RTL doesn't work with Action Mapping
- Warning when publishing project in angular 14
- Select All option in tree view
- actionMapping mouse dblClick has stopped working HOT 1
- Expanding specific node on ngAfterViewInit
- Abandoned? HOT 1
- Add Expand/Collapse tooltips to expand/collapse arrows for better accessibility
- How to use whole new tree inside context menu HOT 1
- text while dragging node
- Module "@circlon/angular-tree-component" has no exported member 'IDTypeDictionary' HOT 1
- Angular 16 support HOT 23
- how can I know when the node is fully expanded?
- Solution: Low performance on scrolling. Performance boost
- NVDA screen reader reading blank sometimes
- System tree view is not displayed
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 angular-tree-component.