The base class for widgets. Through their object class, widgets can be equipped with custom attributes of various types.
The base class for widgets. Through their object class, widgets can be equipped with custom attributes of various types.
Widget
provides the following system attributes to all widgets:
Attribute name | Getter | Purpose | Read only |
---|---|---|---|
id (String) | id() | Unique identifier of the widget | • |
_objClass (String) | objClass() | CMS object model class, e.g. ”TextWidget” |
Creates a Widget
instance.
Returns the attribute definitions of the corresponding CMS widget class.
Returns the page or widget containing the widget.
Creates a copy of a Widget
instance.
Deletes the widget.
Retrieves a custom attribute of a Widget
instance.
The unique identifier of the widget.
The CMS object containing the widget.
The object class name of the widget.
Updates attributes of a Widget
instance.
Returns a flat array of the widgets contained in the given widget.