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

Collapsible Fixes for issue 1149 #1184

Merged
merged 5 commits into from
Sep 26, 2019
Merged

Collapsible Fixes for issue 1149 #1184

merged 5 commits into from
Sep 26, 2019

Conversation

leeberg
Copy link
Contributor

@leeberg leeberg commented Sep 26, 2019

Changes

  • Adding "Transparent" String handling to Dashboard Color Class
  • Set Default $BackgroundColor of UDcollapsible to 'Transparent'

Addresses: #1149

Testing

**Testing - Note you can still of course specify a background, but it looks good without specfiying a background since the default is now transparent.

    New-UDCollapsible -Popout -Items {
        # Get value (show websocket)

        New-UDCollapsibleItem -Title "Get-UDfsfaElement" -Content {
            New-UDTextbox -Label "Enter srome text" -Id 'MyTextbox'
            New-UDButton -Text 'Get the text' -OnClick {
                Show-UDToast -Message (Get-UDElement -Id 'MyTextbox').Attributes['value']
            }
        }

  
        New-UDCollapsibleItem -Title "THE BLUE BOY" -Content {
            New-UDTextbox -Label "Enter some text" -Id 'MyTextbox'
            New-UDButton -Text 'Get the text' -OnClick {
                Show-UDToast -Message (Get-UDElement -Id 'MyTextbox').Attributes['value']
            }
        } -BackgroundColor "Blue"


        New-UDCollapsibleItem -Title "Get-MyTest" -Content {
            New-UDTextbox -Label "Enter some text" -Id 'MyTextbox'
            New-UDButton -Text 'Get the text' -OnClick {
                Show-UDToast -Message (Get-UDElement -Id 'MyTextbox').Attributes['value']
            }
        }
    }

image

New-UDCard -Title "Your Employees" -Content {
            "Welcome to Card Town"
        } -BackgroundColor "transparent"

image

@adamdriscoll
Copy link
Member

Nice! I like that we have "transparent" as a color now!

@adamdriscoll adamdriscoll merged commit e6ba4a4 into master Sep 26, 2019
@adamdriscoll adamdriscoll deleted the collapsiblefixes branch September 26, 2019 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants