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.

Can cellStyle know what field it is styling?

See original GitHub issue

cellStyle can receive the value, row, and row index, but how can it know the name of the column? Sometimes it is possible to guess the column by comparing value to all of the row object property values, but if the values are, e.g. true or false, this approach doesn’t work.

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
wenzhixincommented, May 17, 2016

Added field parameter to cellStyle:

function cellStyle(value, row, index, field) {}
0reactions
dabroscommented, Mar 18, 2016

@martinburch - i understand that, but was saying it could help simplify and cut down on the number of overloads if same basic result came out of multiple combinations - define one or more baseline styles for all false booleans, then override only when needed using combo of outputted classes (from column AND cellStyle)

Just some thoughts, np

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apply, create, or remove a cell style - Microsoft Support
On the Home tab, in the Styles group, click Cell Styles. next to the cell styles box. Click the cell style that you...
Read more >
Cell Styles: Styling & Appearance Feature of our Datagrid
Cell Style. Used to provide CSS styles directly (not using a class) to the cell. Can be either an object of CSS styles,...
Read more >
Cell Styles in Excel: The Complete Guide - GoSkills
A cell style is a preset format that allows you to visually represent data with variations in color, cell borders, alignment, and number...
Read more >
CellStyle - NASA SeaDAS
CellStyle defines the styles of a table cell. Those styles include the background (include the selection background), the foreground (include the selection ...
Read more >
Cell Styles & Conditional Formatting in excel(Cell value,Date ...
A cell style is a defined set of formatting characteristics, such as fonts and font sizes, number formats, cell borders, and cell shading....
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