@@ -197,12 +197,37 @@ Use this in the [jeroennoten/Laravel-AdminLTE](https://github.com/jeroennoten/La
197197| icon | The fontawesome icon class. Eg. `` fas fa-star `` , `` fas fa-user-plus `` | false | string |
198198| grad | Use gradient color? `` true/false `` | false | boolean |
199199| full | Use full INFO BOX? `` true/false `` | false | boolean |
200+ | progress | Show Progress bar? | false | int |
201+ | comment | Show comment? | false | string |
202+ | id | Dynamic Binding? | false | string |
200203
201204** EXAMPLE**
202205``` html
203206<x-dg-info-box bg =" success" title =" Yo title" text =" 123" icon =" fas fa-star" :full =" true" :grad =" true" />
204207```
205208
209+ ** DYNAMIC BINDINGS**
210+ Set `` id `` attibute, this will enable dynamic attributes for:
211+ | ID |
212+ | ----|
213+ | #{id}-title|
214+ | #{id}-text|
215+ | #{id}-progress|
216+ | #{id}-comment|
217+
218+ ** EXAMPLE**
219+ ``` html
220+ <x-dg-info-box bg =" success" title =" Users" text =" 100" icon =" fas fa-star" :full =" true" :grad =" true" id =" userbox" />
221+
222+ <script >
223+ $ (()=> {
224+ $ (' #userbox-title' ).text (' Users' );
225+ $ (' #userbox-text' ).text (' 102' );
226+ });
227+ </script >
228+ ```
229+
230+
206231#### ** SMALL BOX**
207232![ Small Box] ( assets/small-box.png )
208233
@@ -220,12 +245,33 @@ Use this in the [jeroennoten/Laravel-AdminLTE](https://github.com/jeroennoten/La
220245| url | The url to follow. | false | string |
221246| urlText | Text of the HyperLink. | false | string |
222247| loading | Set loading state `` true/false `` | false | boolean |
248+ | id | Dynamic Binding? | false | string |
223249
224250** EXAMPLE**
225251``` html
226252<x-dg-small-box title =" Small box" text =" 500" bg =" warning" url =" #" urlText =" See More" loading =" false" />
227253```
228254
255+ ** DYNAMIC BINDINGS**
256+ Set `` id `` attibute, this will enable dynamic attributes for:
257+ | ID |
258+ | ----|
259+ | #{id}-title|
260+ | #{id}-text|
261+ | #{id}-link|
262+
263+ ** EXAMPLE**
264+ ``` html
265+ <x-dg-small-box title =" Small box" text =" 500" bg =" warning" url =" #" urlText =" See More" loading =" false" $id =" userbox" />
266+
267+ <script >
268+ $ (()=> {
269+ $ (' #userbox-text' ).text (' 102' );
270+ $ (' #userbox-link' ).attr (' href' ,new .link );
271+ });
272+ </script >
273+ ```
274+
229275#### ** CARDS**
230276![ Cards] ( assets/cards.png )
231277
0 commit comments