gws.base.model.widget¶
Base class for field widgets.
Source code: gws.base.model.widget
Module Contents¶
- class gws.base.model.widget.Config(*args, **kwargs)¶
Bases:
gws.ConfigConfiguration for the widget.
- class gws.base.model.widget.Object¶
Bases:
gws.ModelWidgetBase model widget.
Provides the
readOnlyflag and the props common to all widgets.- 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.