Class: QgsAttributeEditorHtmlElement¶
- class qgis.core.QgsAttributeEditorHtmlElement(name: str, parent: QgsAttributeEditorElement)¶
Bases:
QgsAttributeEditorElement
Creates a new element which can display HTML
- Parameters
name – The name of the widget
parent – The parent (used as container)
QgsAttributeEditorHtmlElement(
QgsAttributeEditorHtmlElement
)An attribute editor widget that will represent arbitrary HTML code.
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) –