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?
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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