Altinn / Altinn/app-frontend-react
Støtte for å endre tekst på "Slett"-knapp i repeterende gruppe
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 33
- Avg merge
- 6d 23h
- Merged PRs (30d)
- 3
Description
### Description
Jeg ønsker støtte for å kunne endre tekst på "Slett"-knappen i en repeterende gruppe, både når raden er åpnet i redigeringsmodus (`delete_button_close`), og når den er lukket (`delete_button_open`).
Det finnes tilsvarende felter for `edit_button_open` og `edit_button_close` per i dag.
```json
{
"id": "my-repeating-group",
"type": "RepeatingGroup",
"dataModelBindings": {
"group": "some.list.in.datamodel"
},
"children": [
"child-component1",
"child-component2",
"child-component3"
]
"textResourceBindings": {
"delete_button_open": "Fjern",
"delete_button_close": "some.text.key-in.text.file"
}
}
```
Det bør også være støtte for å kunne sende inn en tom streng, slik at bare søppelbøtte-ikonet vises:
```json
{
"id": "my-repeating-group",
"type": "RepeatingGroup",
"dataModelBindings": {
"group": "some.list.in.datamodel"
},
"children": [
"child-component1",
"child-component2",
"child-component3"
]
"textResourceBindings": {
"delete_button_open": "",
"delete_button_close": "Fjern denne"
}
}
```

### Additional Information
_No response_
Contributor guide
Research direction
Start at the RepeatingGroup implementation and trace the existing edit_button_open and edit_button_close text-resource bindings. Add equivalent delete_button_open and delete_button_close handling, including an empty-string value that leaves only the trash icon visible. Done means both row states display the configured text or icon-only button as requested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100