gws.base.client.core¶
Client object and UI elements.
Source code: gws.base.client.core
Module Contents¶
- class gws.base.client.core.Config(*args, **kwargs)¶
Bases:
gws.ConfigWithAccessUI elements and options of the browser client.
- addElements: list[ElementConfig] | None¶
Elements to add to the inherited application element list.
- elements: list[ElementConfig] | None¶
Client UI elements, replacing the inherited application list.
- options: dict | None¶
Client options, merged with the application client options.
- removeElements: list[ElementConfig] | None¶
Elements to remove from the inherited application element list.
- class gws.base.client.core.Element¶
Bases:
gws.NodeClient UI element.
An element of the browser client, identified by its tag, with element options and access rules.
- options: dict¶
Element-specific options.
- configure()¶
Configuration hook.
Called when the node is initialized. Raising an exception here aborts the creation of the node.
- props(user)¶
Generate a
Propsstruct for this object.Do not call this method directly, use
gws.props_ofinstead, which also checks permissions.- Parameters:
user – The user for which the props should be generated.
- Returns:
A
Propsobject or a dict. Nested objects are converted to props as well.
- class gws.base.client.core.ElementConfig(*args, **kwargs)¶
Bases:
gws.ConfigWithAccessClient UI element.
- options: dict | None¶
Element-specific options passed to the client.
- class gws.base.client.core.ElementProps(*args, **kwargs)¶
Bases:
gws.DataClient UI element properties.
- class gws.base.client.core.Object¶
Bases:
gws.ClientClient object.
- options: dict¶
Client options.
- configure()¶
Configuration hook.
Called when the node is initialized. Raising an exception here aborts the creation of the node.
- props(user)¶
Generate a
Propsstruct for this object.Do not call this method directly, use
gws.props_ofinstead, which also checks permissions.- Parameters:
user – The user for which the props should be generated.
- Returns:
A
Propsobject or a dict. Nested objects are converted to props as well.