Skip to content

Separated Checkbox/Radio options into their own Option elements; Creation of Add, Remove, Select, Sync, Reset, and Clear Actions for Checkboxes; Added Actions for Radio elements, to align with Checkboxes#693

Merged
Badgerati merged 1 commit into
developfrom
Issue-438
Feb 16, 2026

Conversation

@Badgerati
Copy link
Copy Markdown
Owner

Description of the Change

Checkbox and Radio elements have been reworked, similar to Select elements in #692 - they now use New-PodeWebOption for creation of their options, rather than string arrays.

For example, the following previous Checkbox/Radio elements:

New-PodeWebCheckbox -Name 'Example' -Options @('Option1', 'Option2')
New-PodeWebRadio -Name 'Example' -Options @('Option1', 'Option2')

Would now be the following instead:

New-PodeWebCheckbox -Name 'Example' -Options @(
    New-PodeWebOption -Name 'Option1' -Selected
    New-PodeWebOption -Name 'Option2'
)

New-PodeWebRadio -Name 'Example' -Options @(
    New-PodeWebOption -Name 'Option1' -Selected
    New-PodeWebOption -Name 'Option2'
)

Additionally, Radio elements now how Actions to align with Checkboxes; and Checkboxes have had Add, Remove, Select, Reset, and Clear Actions created.

Related Issue

… (same as Select) - allowing support for finer control over option states, updating values, dynamic options, and much more. Radios also finally have Actions
@Badgerati Badgerati added this to the 1.0.0 milestone Feb 15, 2026
@Badgerati Badgerati self-assigned this Feb 15, 2026
@Badgerati Badgerati added the enhancement ⬆️ New feature or request label Feb 15, 2026
@Badgerati Badgerati changed the title Separated Checkbox/Radio options into their own Option elements; Creation of Add, Remove, Select, Reset, and Clear Actions for Checkboxes; Added Actions for Radio elements, to align with Checkboxes Separated Checkbox/Radio options into their own Option elements; Creation of Add, Remove, Select, Sync, Reset, and Clear Actions for Checkboxes; Added Actions for Radio elements, to align with Checkboxes Feb 16, 2026
@Badgerati Badgerati merged commit 85a17a7 into develop Feb 16, 2026
5 checks passed
@Badgerati Badgerati deleted the Issue-438 branch February 16, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement ⬆️ New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

-SelectedOptions for New-PodeWebCheckbox Update Checkbox Value Update-PodeWebCheckbox not work

1 participant