windmill-labs / windmill-labs/windmill

How do I add a selection box to an aggrid table to select a record instead of clicking on a row?

Open
#4,604 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
18k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
328

Description

I want to add a check box before each row in the aggrid table and select by clicking on the check box instead of clicking on the row,

After reviewing the aggrid usage documentation, I tried to add the following configuration in extra config, but unfortunately, it didn't work.

{
"defaultColDef": {
"flex": 1,
"minWidth": 100
},
"rowSelection": {
"mode": "multiRow",
"checkboxes": true,
"headerCheckbox": true,
"enableClickSelection": true,
"selectAll": "filtered"
}
}

I have turned off the options that may conflict in the properties of the windmill aggrid table, but it still cannot take effect. There are not many places that aggrid can customize at present, but it is a pity that this only place cannot take effect, who can tell me what I should do?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Windmill aggrid table's extra config handling and compare it with the AG Grid usage documentation. Reproduce the reported configuration, then trace why row-selection options do not take effect. Done means each row has a selection checkbox and selection works without clicking the row.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.