Skip to content
Discussion options

You must be logged in to vote

You're almost there, you just need to instead pass the id and disabled values to the base class.

class Submit(Button):
    def __init__(
        self,
        id: str | None = None,
        disabled: bool = False,
    ):
        super().__init__(
            label="Submit",
            variant="primary",
            id=id,
            disabled=disabled,
        )

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Tim-Cao
Comment options

@TomJGooding
Comment options

Answer selected by Tim-Cao
@Tim-Cao
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants