Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Button Groups element, and support for Buttons in Card headers #468

Merged
merged 2 commits into from
May 1, 2023

Conversation

Badgerati
Copy link
Owner

Description of the Change

Adds support for rendering a series of Buttons together as a "Button Group", and adds support for adding Buttons (and Groups) into Card headers.

Related Issue

Resolves #451
Resolves #452

Examples

New-PodeWebCard -Name 'Example' -Content @(
    New-PodeWebTextbox -Name 'Name'
) `
-Buttons @(
    New-PodeWebButtonGroup -Buttons @(
        New-PodeWebButton -Name 'Hide' -ScriptBlock {
            Hide-PodeWebElement -Name 'Name' -Type 'Textbox'
        }
        New-PodeWebButton -Name 'Show' -ScriptBlock {
            Show-PodeWebElement -Name 'Name' -Type 'Textbox'
        }
    )
    New-PodeWebButton -Name 'Update' -ScriptBlock {
        Update-PodeWebTextbox -Name 'Name' -Value 'Some random text'
    }
)

@Badgerati Badgerati added this to the 1.0.0 milestone May 1, 2023
@Badgerati Badgerati self-assigned this May 1, 2023
@Badgerati Badgerati merged commit 0c35342 into develop May 1, 2023
@Badgerati Badgerati deleted the Issue-451 branch May 1, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow custom Buttons in Card headers Add support for Button Groups
1 participant