handsontable / handsontable

JavaScript data grid with a spreadsheet look & feel. Works with React, Angular, and Vue. Supported by the Handsontable team ⚡

Home Page:https://handsontable.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

check box In hot-cloumn doesn't show

renjieyao opened this issue · comments

image image why checkbox doesn't show...

Hi @renjieyao

Can you please show us what your data object looks like for the checkbox column?

Hi @renjieyao

Can you please show us what your data object looks like for the checkbox column?

I just give a property that named isCheck, like this:{ isCheck: true }.

Hi @renjieyao

Thank you, that looks correct. Can you please check if you registered all of the modules in Handsontable? It's necessary to have all the features working correctly. It is done like this:

import Handsontable from 'handsontable/base';
import { registerAllModules } from 'handsontable/registry';
registerAllModules();

Hi @renjieyao

Thank you, that looks correct. Can you please check if you registered all of the modules in Handsontable? It's necessary to have all the features working correctly. It is done like this:

import Handsontable from 'handsontable/base';
import { registerAllModules } from 'handsontable/registry';
registerAllModules();

import { reactive, toRefs, onMounted, nextTick } from 'vue'
import { HotTable, HotColumn } from '@handsontable/vue3'
import { registerAllModules } from 'handsontable/registry'
import 'handsontable/dist/handsontable.full.css'
import { ElMessage, ElMessageBox } from 'element-plus'

registerAllModules()

is this right?

@renjieyao

Yes. Does that solve the problem? If not, please send us the code demo where the issue is replicable so we can see what's going on.

@renjieyao

Yes. Does that solve the problem? If not, please send us the code demo where the issue is replicable so we can see what's going on.

no, I write it at the beginning.

Ok, in this case, I will need a code demo representing the issue to determine what can be wrong.

Ok, in this case, I will need a code demo representing the issue to determine what can be wrong.

I have solved this problem, but I want to know is handsontable possible to set a radio?

Hi @renjieyao

I'm glad to hear that. Yes, you can set radio-type input elements through a custom renderer. Here's an example: https://jsfiddle.net/handsoncode/u19z0hfr/

Here you can read more about custom renderers: https://handsontable.com/docs/javascript-data-grid/cell-renderer/

Hi @renjieyao

I'm glad to hear that. Yes, you can set radio-type input elements through a custom renderer. Here's an example: https://jsfiddle.net/handsoncode/u19z0hfr/

Here you can read more about custom renderers: https://handsontable.com/docs/javascript-data-grid/cell-renderer/

Ok,thank u very much.