Skip to content

Mechanism to disable carousel controls? #815

Open
@jepdavidson

Description

@jepdavidson

Hi,

I have been making use of the dbc.Carousel, but have hit some issues when wanting to disable interaction (via controls or indicators) during a long callback.
So far I have handled this by modifying the className of the carousel in one of the 'running' outputs of the long callback:

Output('carousel', 'className'), 'disabledContent', None)

with disabledContent being defined in css as

.disabledContent { pointer-events: none; opacity: 0.75; }

Anyway, I was thinking it would be useful if the Carousel had a 'disabled' attribute - like buttons, text inputs, sliders, etc do.
Then I could simply add

(Output('carousel', 'disabled'), True, False)

Apologies if I've missed something obvious - I am pretty new to Dash...

Kind regards

James

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions