seguro.commands.heartbeat_monitor.main.theme_button

class seguro.commands.heartbeat_monitor.main.theme_button(*args, **kwargs)[source]

Bases: Button

__init__(*args, **kwargs)[source]

Button

This element is based on Quasar’s QBtn component.

The color parameter accepts a Quasar color, a Tailwind color, or a CSS color. If a Quasar color is used, the button will be styled according to the Quasar theme including the color of the text. Note that there are colors like “red” being both a Quasar color and a CSS color. In such cases the Quasar color will be used.

Parameters:
  • text – the label of the button

  • on_click – callback which is invoked when button is pressed

  • color – the color of the button (either a Quasar, Tailwind, or CSS color or None, default: ‘primary’)

  • icon – the name of an icon to be displayed on the button (default: None)

Return type:

None

Methods

__init__(*args, **kwargs)

Button

add_dynamic_resource(name, function)

Add a dynamic resource to the element which returns the result of a function.

add_resource(path)

Add a resource to the element.

add_slot(name[, template])

Add a slot to the element.

ancestors(*[, include_self])

Iterate over the ancestors of the element.

bind_enabled(target_object[, target_name, ...])

Bind the enabled state of this element to the target object's target_name property.

bind_enabled_from(target_object[, ...])

Bind the enabled state of this element from the target object's target_name property.

bind_enabled_to(target_object[, ...])

Bind the enabled state of this element to the target object's target_name property.

bind_icon(target_object[, target_name, ...])

Bind the icon of this element to the target object's target_name property.

bind_icon_from(target_object[, target_name, ...])

Bind the icon of this element from the target object's target_name property.

bind_icon_to(target_object[, target_name, ...])

Bind the icon of this element to the target object's target_name property.

bind_text(target_object[, target_name, ...])

Bind the text of this element to the target object's target_name property.

bind_text_from(target_object[, target_name, ...])

Bind the text of this element from the target object's target_name property.

bind_text_to(target_object[, target_name, ...])

Bind the text of this element to the target object's target_name property.

bind_visibility(target_object[, ...])

Bind the visibility of this element to the target object's target_name property.

bind_visibility_from(target_object[, ...])

Bind the visibility of this element from the target object's target_name property.

bind_visibility_to(target_object[, ...])

Bind the visibility of this element to the target object's target_name property.

clear()

Remove all child elements.

clicked()

Wait until the button is clicked.

default_classes([add, remove, toggle, replace])

Apply, remove, toggle, or replace default HTML classes.

default_props([add, remove])

Add or remove default props.

default_style([add, remove, replace])

Apply, remove, or replace default CSS definitions.

delete()

Delete the element and all its children.

descendants(*[, include_self])

Iterate over the descendants of the element.

disable()

Disable the element.

enable()

Enable the element.

get_computed_prop(prop_name, *[, timeout])

Return a computed property.

mark(*markers)

Replace markers of the element.

move([target_container, target_index, ...])

Move the element to another container.

on(type[, handler, args, throttle, ...])

Subscribe to an event.

on_click(callback)

Add a callback to be invoked when the button is clicked.

remove(element)

Remove a child element.

run_method(name, *args[, timeout])

Run a method on the client side.

set_enabled(value)

Set the enabled state of the element.

set_icon(icon)

Set the icon of this element.

set_text(text)

Set the text of this element.

set_visibility(visible)

Set the visibility of this element.

tooltip(text)

Add a tooltip to the element.

update()

Update the element on the client side.

Attributes

BACKGROUND_COLOR_PROP

classes

The classes of the element.

client

The client this element belongs to.

component

exposed_libraries

extra_libraries

html_id

The ID of the element in the HTML DOM.

is_deleted

Whether the element has been deleted.

is_ignoring_events

Return whether the element is currently ignoring events.

libraries

parent_slot

The parent slot of the element.

props

The props of the element.

style

The style of the element.

component: Component | None = None
exposed_libraries: ClassVar[List[Library]] = []
extra_libraries: ClassVar[List[Library]] = []
libraries: ClassVar[List[Library]] = []
slots: Dict[str, Slot]