From c543480723ecaa575d654e598fd791dc60a4e45e Mon Sep 17 00:00:00 2001 From: Rene Date: Thu, 6 Apr 2023 14:25:35 +0200 Subject: [PATCH] feat: add number and slider inputs --- .../Layout/Inputs/LayoutInputNumber.php | 24 +++++++++++++++++++ .../Layout/Inputs/LayoutInputSlider.php | 24 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 src/NotFound/Layout/Inputs/LayoutInputNumber.php create mode 100644 src/NotFound/Layout/Inputs/LayoutInputSlider.php diff --git a/src/NotFound/Layout/Inputs/LayoutInputNumber.php b/src/NotFound/Layout/Inputs/LayoutInputNumber.php new file mode 100644 index 0000000..6b40752 --- /dev/null +++ b/src/NotFound/Layout/Inputs/LayoutInputNumber.php @@ -0,0 +1,24 @@ +properties->minValue = $min; + + return $this; + } + + public function setMax(int $max): self + { + $this->properties->maxValue = $max; + + return $this; + } +} diff --git a/src/NotFound/Layout/Inputs/LayoutInputSlider.php b/src/NotFound/Layout/Inputs/LayoutInputSlider.php new file mode 100644 index 0000000..09f3407 --- /dev/null +++ b/src/NotFound/Layout/Inputs/LayoutInputSlider.php @@ -0,0 +1,24 @@ +properties->minValue = $min; + + return $this; + } + + public function setMax(int $max): self + { + $this->properties->maxValue = $max; + + return $this; + } +}