datagrok-ai / public

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

#2681: PowerGrid: Tags cell renderer #2681

Closed skalkin closed 7 months ago

skalkin commented 7 months ago

Efficient color-coded representation of tags (comma-separated strings in a cell). Somewhat similar to #2673. This is how this will look:

image

dnillovna commented 7 months ago

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

ahadzhanian commented 7 months ago

PowerGrid 1.3.0

ahadzhanian commented 7 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');