Skip to content

Control Center: Quick Action toggle comamnds #1080

Description

@Deide

What is the request?

In the Control Center widget, one can add their own quick action with a custom command, but the button has two states: on and off.
It would be useful to have an on_command and an off_command for each state. It might also be worth thinking about another property to calculate initial state; perhaps an init_command that returns either 'on' or 'off'.

Why is it useful?

It would be a great way to create custom actions. I realise state could be stored externally to get a 'toggle' functionality, but then the external state and the state of the button could be out of sync.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new functionality or an enhancement.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions