Skip to content

Commit 0f67e92

Browse files
committed
Merge branch 'master' of https://github.com/dgvai/laravel-adminlte-components into release
2 parents 17c6f6c + 35c25c3 commit 0f67e92

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

README.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,10 @@ This package contains [Laravel Blade Components](https://laravel.com/docs/7.x/bl
1919
- [Installation](#installation)
2020
- [Extract Plugins](#extract-plugins)
2121
- [Configurations](#configurations)
22-
- [Components](#components)
23-
- [Widgets](#widgets)
24-
- [**INFO BOX**](#info-box)
25-
- [**SMALL BOX**](#small-box)
26-
- [**CARDS**](#cards)
27-
- [**ALERT**](#alert)
2822
- [**CALLOUT**](#callout)
2923
- [**PROGRESS**](#progress)
3024
- [**PROFILE FLAT**](#profile-flat)
3125
- [**PROFILE WIDGET**](#profile-widget)
32-
- [**MODAL**](#modal)
33-
- [**DATATABLE**](#datatable)
34-
- [Form Components](#form-components)
35-
- [INPUT](#input)
36-
- [INPUT-FILE](#input-file)
37-
- [INPUT-COLOR](#input-color)
3826
- [INPUT-DATE](#input-date)
3927
- [DATE-RANGE](#date-range)
4028
- [INPUT-SWITCH](#input-switch)
@@ -421,6 +409,11 @@ $(()=>{
421409
| value | Input value | null | string |
422410
| disabled | is disabled? | false | boolean |
423411
| required | is required? | false | boolean |
412+
| step | attr: step | null | string |
413+
| max | attr: max | null | string |
414+
| maxlength | attr: maxlength | null | string |
415+
| pattern | attr: pattern | null | string |
416+
424417

425418
#### INPUT-FILE
426419
**REQUIRES**

src/Components/Input.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ class Input extends Component
99
public $type, $id, $name, $label, $placeholder;
1010
public $topclass, $inputclass;
1111
public $value, $disabled, $required;
12+
public $step, $max, $maxlength, $pattern;
1213

1314
public function __construct(
1415
$type = 'text', $id = null, $name = null,
1516
$label = 'Input Label', $placeholder = null,
1617
$topclass = null, $inputclass = null,
17-
$value = null, $disabled = false, $required = false
18+
$value = null, $disabled = false, $required = false,
19+
$step = null, $max = null, $maxlength = null, $pattern = null
1820
)
1921
{
2022
$this->type = $type;
@@ -27,6 +29,10 @@ public function __construct(
2729
$this->value = $value;
2830
$this->required = $required;
2931
$this->disabled = $disabled;
32+
$this->step = $step;
33+
$this->max = $max;
34+
$this->maxlength = $maxlength;
35+
$this->pattern = $pattern;
3036
}
3137

3238
public function render()

src/resources/components/input.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<label for="{{$id}}">{{$label}}</label>
33
<input type="{{$type}}" class="{{$inputclass}} form-control @error($name) is-invalid @enderror"
44
id="{{$id}}" name="{{$name}}" placeholder="{{$placeholder}}"
5+
step="{{$step}}" max="{{$max}}" maxlength="{{$maxlength}}" pattern="{{$pattern}}"
56
value="{{$value}}"
67
{{($required) ? 'required' : '' }}
78
{{($disabled) ? 'disabled' : '' }}>

0 commit comments

Comments
 (0)