core.bones.sortindex
¶
Module Contents¶
Classes¶
The SortIndexBone class is specifically designed to handle sorting indexes for data elements, which are |
- class core.bones.sortindex.SortIndexBone(*, defaultValue=lambda *args, **kwargs: ..., descr='SortIndex', precision=8, clone_behavior=CloneBehavior(CloneStrategy.SET_DEFAULT), **kwargs)¶
Bases:
viur.core.bones.numeric.NumericBone
The SortIndexBone class is specifically designed to handle sorting indexes for data elements, which are numeric values that determine the order of these elements. It inherits from the NumericBone.
- Parameters:
defaultValue (int | float) – A default value for the bone, which is a function that returns the current time by default. This parameter accepts either an integer or a floating-point number.
descr (str) – A short description of the bone, set to “SortIndex” by default.
precision (int) – The precision of the numeric value, determining the number of decimal places allowed. The default value is 8.
kwargs (dict) – Additional keyword arguments that can be passed to the parent NumericBone class.
defaultValue –
Initializes a new NumericBone.
- Parameters:
min – Minimum accepted value (including).
max – Maximum accepted value (including).
precision (int) – How may decimal places should be saved. Zero casts the value to int instead of float.
defaultValue (int | float) –
descr (str) –
- type = 'numeric.sortindex'¶