Skip to content

Commit c543480

Browse files
committed
feat: add number and slider inputs
1 parent 8c5ded3 commit c543480

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace NotFound\Layout\Inputs;
4+
5+
class LayoutInputNumber extends AbstractInput
6+
{
7+
protected string $type = 'InputNumber';
8+
9+
protected string $value = '';
10+
11+
public function setMin(int $min): self
12+
{
13+
$this->properties->minValue = $min;
14+
15+
return $this;
16+
}
17+
18+
public function setMax(int $max): self
19+
{
20+
$this->properties->maxValue = $max;
21+
22+
return $this;
23+
}
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace NotFound\Layout\Inputs;
4+
5+
class LayoutInputSlider extends AbstractInput
6+
{
7+
protected string $type = 'InputSlider';
8+
9+
protected string $value = '';
10+
11+
public function setMin(int $min): self
12+
{
13+
$this->properties->minValue = $min;
14+
15+
return $this;
16+
}
17+
18+
public function setMax(int $max): self
19+
{
20+
$this->properties->maxValue = $max;
21+
22+
return $this;
23+
}
24+
}

0 commit comments

Comments
 (0)