Class: QgsAttributeEditorHtmlElement¶
- class qgis.core.QgsAttributeEditorHtmlElement¶
Bases:
QgsAttributeEditorElement
An attribute editor widget that will represent arbitrary HTML code.
Added in version 3.4.
QgsAttributeEditorHtmlElement(name: Optional[str], parent: Optional[QgsAttributeEditorElement]) Creates a new element which can display HTML
- Parameters:
name – The name of the widget
parent – The parent (used as container)
QgsAttributeEditorHtmlElement(a0:
QgsAttributeEditorHtmlElement
)Methods
- param parent:
The Html code that will be represented within this widget.
Sets the HTML code that will be represented within this widget to
htmlCode
.- clone(self, parent: QgsAttributeEditorElement | None) QgsAttributeEditorElement | None ¶
- Parameters:
parent (Optional[QgsAttributeEditorElement])
- Return type:
Optional[QgsAttributeEditorElement]
- htmlCode(self) str ¶
The Html code that will be represented within this widget.
Added in version 3.4.
- Return type:
str
- setHtmlCode(self, htmlCode: str | None)¶
Sets the HTML code that will be represented within this widget to
htmlCode
.- Parameters:
htmlCode (Optional[str])