Class: QgsListFieldFormatter

class qgis.core.QgsListFieldFormatter

Bases: QgsFieldFormatter

Field formatter for a list field.

This represents a list type value. Values will be represented as a comma-separated list.

QgsListFieldFormatter() Default constructor of field formatter for a list field.

QgsListFieldFormatter(QgsListFieldFormatter)

Methods

id

rtype:

str

representValue

param layer:

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