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