@@ -17,6 +17,7 @@ This package contains [Laravel Blade Components](https://laravel.com/docs/7.x/bl
1717- [ AdminLTE Blade Components for Laravel 7+] ( #adminlte-blade-components-for-laravel-7 )
1818 - [ Contents] ( #contents )
1919 - [ Installation] ( #installation )
20+ - [ Extract Plugins] ( #extract-plugins )
2021 - [ Configurations] ( #configurations )
2122 - [ Components] ( #components )
2223 - [ Widgets] ( #widgets )
@@ -38,6 +39,7 @@ This package contains [Laravel Blade Components](https://laravel.com/docs/7.x/bl
3839 - [ DATE-RANGE] ( #date-range )
3940 - [ INPUT-SWITCH] ( #input-switch )
4041 - [ INPUT-TAG] ( #input-tag )
42+ - [ INPUT-SLIDER] ( #input-slider )
4143 - [ SELECT] ( #select )
4244 - [ SELECT2] ( #select2 )
4345 - [ SELECT-ICON] ( #select-icon )
@@ -58,11 +60,122 @@ You can install the package via composer:
5860 composer require dgvai/laravel-adminlte-components
5961```
6062
63+ ## Extract Plugins
64+ ``` bash
65+ php artisan vendor:publish --tag=adminlte-dg-plugins
66+ ```
67+
6168## Configurations
6269You can use this package, stand alone with AdminLTE installed in your app. You just need to add an `` @yield('js') `` at the bottom of your <kbd >master</kbd > blade layout.
6370
6471Or, if you use [ jeroennoten/Laravel-AdminLTE] ( https://github.com/jeroennoten/Laravel-AdminLTE ) package, then you do not need to add anything at `` master `` . I will prefer to use this package.
6572
73+ Use this in the [ jeroennoten/Laravel-AdminLTE] ( https://github.com/jeroennoten/Laravel-AdminLTE ) config:
74+ ``` php
75+ [
76+ 'name' => 'AdminLTE-Components-DG',
77+ 'active' => true,
78+ 'files' => [
79+ [
80+ 'type' => 'css',
81+ 'asset' => true,
82+ 'location' => '/vendor/dg-plugins/select2/css/select2.min.css',
83+ ],
84+ [
85+ 'type' => 'css',
86+ 'asset' => true,
87+ 'location' => '/vendor/dg-plugins/select2/css/select2-bootstrap4.min.css',
88+ ],
89+ [
90+ 'type' => 'js',
91+ 'asset' => true,
92+ 'location' => '/vendor/dg-plugins/select2/js/select2.min.js',
93+ ],
94+ [
95+ 'type' => 'js',
96+ 'asset' => true,
97+ 'location' => '/vendor/dg-plugins/bs-custom-file-input/bs-custom-file-input.min.js',
98+ ],
99+ [
100+ 'type' => 'js',
101+ 'asset' => true,
102+ 'location' => '/vendor/dg-plugins/moment/moment.min.js',
103+ ],
104+ [
105+ 'type' => 'css',
106+ 'asset' => true,
107+ 'location' => '/vendor/dg-plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css',
108+ ],
109+ [
110+ 'type' => 'js',
111+ 'asset' => true,
112+ 'location' => '/vendor/dg-plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js',
113+ ],
114+ [
115+ 'type' => 'css',
116+ 'asset' => true,
117+ 'location' => '/vendor/dg-plugins/summernote/summernote-bs4.css',
118+ ],
119+ [
120+ 'type' => 'js',
121+ 'asset' => true,
122+ 'location' => '/vendor/dg-plugins/summernote/summernote-bs4.min.js',
123+ ],
124+ [
125+ 'type' => 'css',
126+ 'asset' => true,
127+ 'location' => '/vendor/dg-plugins/bs-select/css/bootstrap-select.min.css',
128+ ],
129+ [
130+ 'type' => 'js',
131+ 'asset' => true,
132+ 'location' => '/vendor/dg-plugins/bs-select/js/bootstrap-select.min.js',
133+ ],
134+ [
135+ 'type' => 'css',
136+ 'asset' => true,
137+ 'location' => '/vendor/dg-plugins/bootstrap-tags-input/bootstrap-tagsinput.css',
138+ ],
139+ [
140+ 'type' => 'js',
141+ 'asset' => true,
142+ 'location' => '/vendor/dg-plugins/bootstrap-tags-input/bootstrap-tagsinput.js',
143+ ],
144+ [
145+ 'type' => 'js',
146+ 'asset' => true,
147+ 'location' => '/vendor/dg-plugins/daterangepicker/daterangepicker.js',
148+ ],
149+ [
150+ 'type' => 'css',
151+ 'asset' => true,
152+ 'location' => '/vendor/dg-plugins/daterangepicker/daterangepicker.css',
153+ ],
154+ [
155+ 'type' => 'css',
156+ 'asset' => true,
157+ 'location' => '/vendor/dg-plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css',
158+ ],
159+ [
160+ 'type' => 'js',
161+ 'asset' => true,
162+ 'location' => '/vendor/dg-plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js',
163+ ],
164+ [
165+ 'type' => 'css',
166+ 'asset' => true,
167+ 'location' => '/vendor/dg-plugins/bootstrap-slider/css/bootstrap-slider.min.css',
168+ ],
169+ [
170+ 'type' => 'js',
171+ 'asset' => true,
172+ 'location' => '/vendor/dg-plugins/bootstrap-slider/js/bootstrap-slider.min.js',
173+ ],
174+ ],
175+ ],
176+
177+ ```
178+
66179## Components
67180
68181### Widgets
@@ -392,6 +505,7 @@ $(()=>{
392505| title | Input Title | Filter Range | string |
393506| icon | Icon | far fa-calendar-alt | string |
394507| topclass | class along with 'fomr-group' | null | string |
508+ | inputclass | class along with 'filter button' | null | string |
395509| init | The initial position of range, (0-5) * | 2 | integer |
396510| callback | The JS callback function to run on change filter | null | string (js) |
397511
@@ -448,6 +562,34 @@ $(()=>{
448562| required | is required? | false | boolean |
449563| max | max tag count | 10 | integer |
450564
565+ #### INPUT-SLIDER
566+ ** REQUIRES**
567+ [ bootstrap-slider] ( https://github.com/seiyria/bootstrap-slider )
568+
569+ ** USAGE**
570+ ``` html
571+ <x-dg-input-slider id =" myID" />
572+ ```
573+
574+ ** ALL AVAILABLE ATTRIBUTES**
575+ | ATTRIBUTE | DETAILS | DEFAULT | TYPE |
576+ | -------------| ---------------------------------| -------------| ---------|
577+ | id | Input ID | none | string |
578+ | name | Input name | null | string |
579+ | label | Input Label | Input Label | string |
580+ | topclass | class along with 'fomr-group' | null | string |
581+ | inputclass | class along with 'form-control' | null | string |
582+ | disabled | is disabled? | false | boolean |
583+ | required | is required? | false | boolean |
584+ | min | minimum | 0 | signed int |
585+ | max | maximum | 100 | signed int |
586+ | value | value | null | string |
587+ | color | blue, green, red, teal, yellow, purple | blue | string |
588+ | tick | Enable Tick? | false | boolean |
589+ | ticks | Ticks : [ 0, 10, 20, ...] | null | string |
590+ | tickLabels | Tick Labels : [ "low", "medium", "high" ...] | null | string |
591+ | vertical | Is vertical? | false | boolean |
592+
451593
452594#### SELECT
453595
0 commit comments