Skip to content

Is it possible to customize button to an image? #2611

Open
@tonywang531

Description

@tonywang531

Currently I believe the button widget allows custom icons.

Taking example from user guide:

widgets.Button(
    description='Click me',
    disabled=False,
    button_style='', # 'success', 'info', 'warning', 'danger' or ''
    tooltip='Click me',
    icon='check'
)

How about change the icon to a custom image? Is it possible? Sorry I am not too familiar with css or JavaScript. Or is it easier to do widgets.Image and add custom triggers to it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions