ChoiceFloatDynField
Field of Model.
Type of selective float field with dynamic addition of elements.
ChoiceFloatDynField
¶
Bases: Field
, ChoiceGroup
, JsonMixin
Field of Model.
Type of selective integer field with dynamic addition of elements.
For simulate relationship Many-to-One.
Element are (add|delete) via ModelName.unit_manager(unit)
method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
label
|
str
|
Text label for a web form field. |
''
|
hide
|
bool
|
Hide field from user. |
False
|
disabled
|
bool
|
Blocks access and modification of the element. |
False
|
ignored
|
bool
|
If true, the value of this field is not saved in the database. |
False
|
hint
|
str
|
An alternative for the |
''
|
warning
|
list[str] | None
|
Warning information. |
None
|
required
|
bool
|
Required field. |
False
|
readonly
|
bool
|
Specifies that the field cannot be modified by the user. |
False
|
Source code in src\ramifice\fields\choice_float_dyn_field.py
has_value(is_migrate=False)
¶
Does the field value match the possible options in choices.