datagrok-ai / public

Public package repository for the Datagrok.ai platform
MIT License
45 stars 26 forks source link

#2673: PowerGrid: MultiChoice cell renderer #2673

Closed skalkin closed 8 months ago

skalkin commented 9 months ago

This cell type should show a number of check boxes within a cell. It will work in two scenarios:

https://community.datagrok.ai/t/add-multiple-check-box-and-dropdown-list-to-cell-of-table/835/9

dnillovna commented 9 months ago

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-14908

ahadzhanian commented 9 months ago
const df = grok.data.demo.demog(100);
grok.shell.addTableView(df);
const dis = df.col('disease');
const site = df.col('site');
dis.set(0, 'Anxiety, Glaucoma');
dis.set(1, 'Hepatitis A, Glaucoma');
dis.setTag(DG.TAGS.CHOICES, JSON.stringify(['Anxiety', 'Hepatitis A', 'Glaucoma']));
dis.setTag(DG.TAGS.CELL_RENDERER, 'MultiChoice');
site.setTag(DG.TAGS.CELL_RENDERER, 'Tags');
ahadzhanian commented 8 months ago

PowerGrid 1.3.0