gws.base.client

Source code: gws.base.client

Submodules

Package Contents

class gws.base.client.Object

Bases: gws.Client

GWS Client control object.

options: dict
elements: list[Element]
configure()

Configuration hook.

props(user)

Generate a Props struct for this object.

Parameters:

user – The user for which the props should be generated.

class gws.base.client.Props(*args, **kwargs)

Bases: gws.Data

Basic data object.

This object can be instantiated by passing one or or dict arguments and/or keyword args. All dicts keys and keywords become attributes of the object.

Accessing an undefined attribute returns None and no error is raised, unless the attribute name starts with an underscore.

options: dict | None
elements: list[ElementProps] | None
class gws.base.client.Config(*args, **kwargs)

Bases: gws.ConfigWithAccess

GWS client configuration

options: dict | None

client options

elements: list[ElementConfig] | None

client UI elements

addElements: list[ElementConfig] | None

add elements to the parent element list

removeElements: list[ElementConfig] | None

remove elements from the parent element list