View Source Arke.Core.Parameter.Float (Arke v1.1.33)

Module that define the struct of a Float by extending the Arke.Core.Parameter.base_parameters()

{arke_struct} = Parameter.Float

element-added

Element added

  • min => :atom => define the mix value the parammeter could have
  • max => :atom => define the max the parammeter could have
  • values => [list] || [%{label: string, value: any}, ...] => use this to create a parameter with only certain values assignable. (Values must be the same type as the parameter we want to create)
  • multiple => boolean => relevant only if values are set. It makes possible to assign more than a values defined in values
  • default => Float => default value

## Example

  iex> params = [id: :float_test, min: 3, max: 7.5]
  ...> Arke.Core.Parameter.new(%{type: :float, opts: params})

## Return

  %Arke.Core.Parameter.Float{}

Link to this section Summary

Link to this section Functions