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

Button widget: format does not match spec #9

Closed
thuydotm opened this issue Dec 16, 2024 · 1 comment
Closed

Button widget: format does not match spec #9

thuydotm opened this issue Dec 16, 2024 · 1 comment

Comments

@thuydotm
Copy link
Collaborator

thuydotm commented Dec 16, 2024

Looks like button style is always contained regardless what its value is. Button color (button_type) is correct though.

import panel as pn
from panel_material_ui import *

pn.extension(template='material', defer_load=True)

button_styles = ['contained', 'outlined', 'text']
button_types = ['primary', 'secondary', 'error', 'info', 'success', 'warning']

for s in button_styles:
    for t in button_types:
        button = Button(name=f"{s}-{t}", button_type=t, button_style = s)
        button.servable()

image

@thuydotm
Copy link
Collaborator Author

Fixed with #10

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

No branches or pull requests

1 participant