icetalker / filament-table-repeatable-entry
Display Filament RepeatableEntry as table
Installs: 6 978
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 1
Forks: 2
Open Issues: 3
Language:Blade
Requires
- php: ^8.1
- filament/infolists: ^3.0||3.0-stable
- illuminate/contracts: ^10.0|^11.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
README
This is a Filament Infolists Component, use for display RepetableEntry as a table. In case you are using TableRepeater instead of RelationManager.
Installation
You can install the package via composer:
composer require icetalker/filament-table-repeatable-entry
Usage
namespace Icetalker\FilamentTableRepeater\Forms\Components; TableRepeatableEntry::make('items') ->schema([ Infolists\Components\TextEntry::make('product'), Infolists\Components\TextEntry::make('quantity'), Infolists\Components\TextEntry::make('price'), ]) ->columnSpan(2),
Striped Row
To enable striped table rows, you can use the striped()
method:
namespace Icetalker\FilamentTableRepeater\Forms\Components; TableRepeatableEntry::make('items') ->schema([ Infolists\Components\TextEntry::make('product'), Infolists\Components\TextEntry::make('quantity'), Infolists\Components\TextEntry::make('price'), ]) ->striped() ->columnSpan(2),
Show Index
To show table row index, please use showIncdex()
:
namespace Icetalker\FilamentTableRepeater\Forms\Components; TableRepeatableEntry::make('items') ->schema([ Infolists\Components\TextEntry::make('product'), Infolists\Components\TextEntry::make('quantity'), Infolists\Components\TextEntry::make('price'), ]) ->striped() ->columnSpan(2),
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.