[
I have data of having a Boolean field. i want to show that in lightning-datatable as a Check box instead of Utility:check. like show in Image
This is not possible with the standard data table component. If you use a boolean
type, it will show just the icon. The actual checkbox is only available at the left side, row-level, for selecting a row in the table.
Here's a screenshot of the corner of a data table component with the first column having the boolean
type assigned to it:
Particularly I don't see the absolute need for changing this. If you do, however, need to use an actual checkbox, then you might need to find or build yourself a custom data table component.
Some good reasons not to pursue what you are trying to do include the difficulty of building a custom data table component, the need to maintain third-party code on your org if you do find an open source solution for that, spending money on a paid solution (if it exists) and finally: this goes against the design guidelines that Salesforce itself promotes in its design system.
type: 'boolean'
of the lightning-datatable and you are not happy with it?