handsontable / ngHandsontable

Official AngularJS directive for Handsontable
http://handsontable.github.io/ngHandsontable/
MIT License
433 stars 159 forks source link

can we make certain rows data bold or can we render row #244

Closed jnjagtap closed 5 years ago

jnjagtap commented 6 years ago

want to make certain rows from table bold.

AMBudnik commented 6 years ago

Hi @

you can use a cells method to perform these operations. Are the bolding follows any pattern (recursion)?

jnjagtap commented 6 years ago

i just want to make row in bold style where row containing data total

screenshot from 2018-07-19 11-17-28

AMBudnik commented 6 years ago

If you want to base the styling on data you can use the getDataAtCell method. Here's the code to use http://jsfiddle.net/mdfya5po/

jnjagtap commented 6 years ago

how do i add classname(styling) in nghandsontable

AMBudnik commented 6 years ago

Here's a reference demo for the ngHandsontable http://jsbin.com/sisayehelo/1/edit?html,js,output

You just need to change the resources to https://cdn.jsdelivr.net/npm/handsontable-pro@5.0.0/dist/handsontable.full.min.css https://cdn.jsdelivr.net/npm/handsontable-pro@5.0.0/dist/handsontable.full.min.js

jnjagtap commented 6 years ago

so if i m not using pro then how can i can i implement this in nghandsontable

AMBudnik commented 6 years ago

The following option works also for Handsontable CE, only the demo uses PRO resources.

jnjagtap commented 6 years ago

i got instance but getDataAtCell method gives me null value all the time

AMBudnik commented 6 years ago

Can you create a demo (for example in the JSFiddle or CodePen) where this issue can be replicable?