Skip to content

Commit

Permalink
feat: add number and slider inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
64knl committed Apr 6, 2023
1 parent 8c5ded3 commit c543480
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/NotFound/Layout/Inputs/LayoutInputNumber.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace NotFound\Layout\Inputs;

class LayoutInputNumber extends AbstractInput
{
protected string $type = 'InputNumber';

protected string $value = '';

public function setMin(int $min): self
{
$this->properties->minValue = $min;

return $this;
}

public function setMax(int $max): self
{
$this->properties->maxValue = $max;

return $this;
}
}
24 changes: 24 additions & 0 deletions src/NotFound/Layout/Inputs/LayoutInputSlider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace NotFound\Layout\Inputs;

class LayoutInputSlider extends AbstractInput
{
protected string $type = 'InputSlider';

protected string $value = '';

public function setMin(int $min): self
{
$this->properties->minValue = $min;

return $this;
}

public function setMax(int $max): self
{
$this->properties->maxValue = $max;

return $this;
}
}

0 comments on commit c543480

Please sign in to comment.