Class: QgsKeyValueFieldFormatter¶
- class qgis.core.QgsKeyValueFieldFormatter¶
Bases:
QgsFieldFormatter
Default constructor of field formatter for a key value field.
QgsKeyValueFieldFormatter(
QgsKeyValueFieldFormatter
)Field formatter for a key value field.
This represents a list type value. Values will be represented as a colon-delimited and comma-separated list.
E.g. “color: yellow, amount: 5”
- id(self) → str¶
- Return type
str
- representValue(self, layer: QgsVectorLayer, fieldIndex: int, config: Dict[str, Any], cache: Any, value: Any) → str¶
- Parameters
layer (QgsVectorLayer) –
fieldIndex (int) –
config (Dict[str) –
cache (Any) –
value (Any) –
- Return type
str