mirror of
https://github.com/archtechx/gloss.git
synced 2025-12-13 03:34:03 +00:00
Conditional overrides
This commit is contained in:
parent
fbf5049110
commit
914bdfb296
5 changed files with 143 additions and 26 deletions
|
|
@ -130,7 +130,7 @@ Gloss::extend('foo.pagination', fn ($value, $replace) => $replace($value, [
|
|||
':total' => '<span class="font-medium">:total</span>',
|
||||
]));
|
||||
|
||||
Gloss::get('test.pagination', ['start' => 10, 'end' => 20, 'total' => 50])
|
||||
Gloss::get('foo.pagination', ['start' => 10, 'end' => 20, 'total' => 50])
|
||||
// Showing <span class="font-medium">10</span> to <span class="font-medium">20</span> of <span class="font-medium">50</span> results
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue