Class: QgsAttributeEditorHtmlElement¶
- class qgis.core.QgsAttributeEditorHtmlElement¶
Bases:
QgsAttributeEditorElement
An attribute editor widget that will represent arbitrary HTML code.
New in version 3.4.
QgsAttributeEditorHtmlElement(name: str, parent:
QgsAttributeEditorElement
) Creates a new element which can display HTML- Parameters
name – The name of the widget
parent – The parent (used as container)
QgsAttributeEditorHtmlElement(
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) QgsAttributeEditorElement ¶
- Parameters
parent (QgsAttributeEditorElement) –
- Return type
- htmlCode(self) str ¶
The Html code that will be represented within this widget.
New in version 3.4.
- Return type
str
- setHtmlCode(self, htmlCode: str)¶
Sets the HTML code that will be represented within this widget to
htmlCode
.- Parameters
htmlCode (str) –