Download the PHP package icetalker/filament-table-repeater without Composer
On this page you can find all versions of the php package icetalker/filament-table-repeater. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download icetalker/filament-table-repeater
More information about icetalker/filament-table-repeater
Files in icetalker/filament-table-repeater
Package filament-table-repeater
Short Description This is a package for Filament form component. Extends form Repeater, but shows in Table Layout.
License MIT
Homepage https://github.com/icetalker/filament-table-repeater
Informations about the package filament-table-repeater
Repeater Component in Table layout for Filament Package
This is a package for Filament form component. Extends from Repeater, but display in Table Layout.
Installation
You can install the package via composer:
You can publish the views using
Usage
Since this component extends from
Filament\Forms\Components\Repeater
, you can use most of its methods, except for a few methods likeinset()
,grid()
,columns()
.
Other methods
colStyles
To customize styles for each cell, you can pass an array of component name as key and css style as value to colStyles()
. See example below:
Besides, you can also pass a callback function to colStyles()
. This may unlock more customization possibilities. See example below:
Style customization
Besides the colStyles()
method mentioned above, we use few css classes to provide extra ability for style customization. These classes were so called CSS "hook" classes. They are prefixed with it-
(short for icetalker
, which is the vendor name). Although we already have hook classes in old version, it's never been documented here. And for now, we rename these hook name by the new prefix it-
:
it-table-repeater
instead offilament-table-repeater
in old version: As what you can tell from the class name, it allows you to customize the style for the whole table.it-table-repeater-cell-label
instead offilament-table-repeater-header-cell
in old version: As what you can tell from the class name, it allows you to customize the style for the label of each column.it-table-repeater-cell
instead offilament-table-repeater-tbody-cell
in old version: As what you can tell from the class name, it allows you to customize the style for the cell of each column.it-table-repeater-row
. This is new hook class, so that you can customize the style for each row.
You may add CSS to these classes in your app.css
file, and filled with your own styles like this:
Testing
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
- Martin Hwang
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-table-repeater with dependencies
filament/forms Version ^3.0
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^8.6|^9.0|^10.0|^11.0