Add MultiSelect option and documentation to New-PodeWebTable - #499 & #630#700
Open
BirkFoste wants to merge 4 commits intoBadgerati:developfrom
Open
Add MultiSelect option and documentation to New-PodeWebTable - #499 & #630#700BirkFoste wants to merge 4 commits intoBadgerati:developfrom
BirkFoste wants to merge 4 commits intoBadgerati:developfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the Change
This pull request adds multi-select support to
New-PodeWebTable, allowing users to select multiple rows in a table and perform actions on the selected items. The main changes include updates to both the PowerShell and JavaScript code to enable, handle, and expose multi-selection functionality, as well as an example demonstrating how to use it.Multi-select table support:
-MultiSelectswitch parameter toNew-PodeWebTable, which enables multi-row selection in tables.templates.jsto add checkboxes for row selection, a "select all" checkbox in the table header, and the necessary event handlers for managing selection state.JavaScript API and UX improvements:
getSelection()andupdateSelectAllState()methods to retrieve selected row IDs and manage the "select all" checkbox state.Example usage:
examples/tables.ps1showing a multi-select process table with a "Stop Selected" button and modal, demonstrating how to act on multiple selected items.Related Issue