question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need some Color for Expanded row to show prominently, for which detail is being displayed

See original GitHub issue

I’m submitting a …

[x] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior When we expand a row for displaying row details, we could have our own template being rendered as row details, however the row which is expanded cannot be highlighted. We wanted to show the expanded row in some different color.

I’m not sure if it is already pursued or have discussed somewhere. Could you please help me out.

Expected behavior We need to highlight the row which is expanded.

Reproduction of the problem Take a table with row details, you could pick from the example as well. Expand couple of rows. You could see that the row which is expanded does not appear prominent. image

What is the motivation / use case for changing the behavior? The expanded row should be displayed prominently, so that user could determine for which row he/she is viewing the details. It gets difficult for user to quickly identify the row which is expanded.

Please tell us about your environment:

  • Table version: ngx-datatable: 9.2.0

  • Angular version: Angular version : 4.3.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] All browsers

  • Language: [all | TypeScript X.X | ES6/7 | ES5] Typescript

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
mishkolesnikovcommented, Aug 23, 2017

I use rowClass input of ngx-datatable component. If rowClass is a function it actually take ‘row’ object as parameter which contain only row data and no informatoin about expanding. But there is kinda huck for this function. This function is called in context of body-row component, and you can get access to its propeties through ‘this’ object. So, for higher level component:

getRowClass(row) {
    return {
      'row-expanded': this.expanded
    };
  }

and

<ngx-datatable
...
[rowClass]="getRowClass"
...>
</ngx-datatable>
0reactions
rahul-winnercommented, Aug 28, 2017

can anyone please help on this ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ag-grid master/detail: custom row style when detail expanded
but I don't get the correct behavior, because the row changes color clicking on it even without the detail being expanded, while I...
Read more >
Displaying data in lists | Apple Developer Documentation
Each row inside a List must be a SwiftUI View . You may be able to represent your data with a single view...
Read more >
Add or remove shading in a table - Microsoft Support
Select the cells you want to change. ... Under Theme Colors or Standard Colors, select the shading color you want. Or, for more...
Read more >
Configuring Discovery Views for Primo VE
On the Views List page (Configuration Menu > Discovery > Display Configuration > Configure Views), select Add View to open the View ......
Read more >
Developing for Multiple Screen Sizes and Orientations in ...
This app simply holds a list of numbers and displays a number prominently when tapped on. We have a master list of numbers...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found