You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

The Number Field allows you to give a display format to numbers being these strings, ints or floats. For example with the format 1,.2 you may transform a "2,3324120424..." number in the database to a more user friendly display like "2,33". The join  specification is a substring that will be used for numeric concatenation if multiple numbers are displayed at the same time, that way a join  value of "|" will be used to join the list [123, 456, 789] as "123|456|789".


Note:  while using format strings adding a number after a comma instead of a dot will cause a rendering error and the number field won't be displayed. Example of this behavior would be "1,2" instead of "1,.2".


NumberField

ParameterTypeDefaultRequiredDescription
formatstr'1,.2'FalseFormat for the field.
joinstr'| 'FalseJoin separator.

_NumberFieldUI

ParameterTypeDefaultRequiredDescription
typeDynamicFieldTypeNUMBERTrueType of the dynamic field.


Example Configuration

NumberField(label='Popularity', field='metadata.popularity', format='1.2')
  • No labels