Altinn / app-frontend-react

Altinn application React frontend
BSD 3-Clause "New" or "Revised" License
14 stars 24 forks source link

Checkbox lable gets hidden when only one option available in tableView #2047

Open NathalieFroissart opened 3 weeks ago

NathalieFroissart commented 3 weeks ago

Description

I have created an AppOptionProvider. And I would like to display the options in a repeatingGroup (table view). This is not possible because of how the code is written now. https://github.com/Altinn/app-frontend-react/blob/main/src/layout/Checkboxes/CheckboxesContainerComponent.tsx#L57 .

The reson I want this is because I want to display all applicants connected to an applicatin id. The user should then be able to choose wich one of the applicants that is no longer an applicant (an old applicant) . This is how it is displayed now: image but when clicking on "rediger" it is possible to see the option. image The desired result would be to set "edit": { "editButton": false} and set "showInExpandedEdit": false on "old Applicants" and be able to see the lable to see the lable in table view. image

Additional Information

No response