# JavaScript API updates

**URL:** <https://community.datagrok.ai/t/javascript-api-updates/526>\
**Category:** Features\
**Tags:** datagrok, javascript\
**Created:** [March 15, 2021, 3:17pm UTC](https://community.datagrok.ai/t/javascript-api-updates/526 "2021-03-15T15:17:28Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![skalkin](https://community.datagrok.ai/user_avatar/community.datagrok.ai/skalkin/32/5_2.png) [@skalkin](https://community.datagrok.ai/u/skalkin)\
**Post date:** [August 1, 2021, 7:41pm UTC](https://community.datagrok.ai/t/javascript-api-updates/526/14 "2021-08-01T19:41:50Z")

</div>

Use the following functions to get the color of the cell (note that the parameter is a DataFrameCell, not GridCell)

```auto
DG.Color.getCellColorHtml(cell: Cell): string
DG.Color.getCellColor(cell: Cell): number

```

Working example: [https://dev.datagrok.ai/js/samples/grid/color-coding/get-cell-color](https://dev.datagrok.ai/js/samples/grid/color-coding/get-cell-color)

---

_[View the full topic](https://community.datagrok.ai/t/javascript-api-updates/526)._
