icetalker/filament-table-repeatable-entry

Display Filament RepeatableEntry as table

v1.0.1 2023-10-20 14:28 UTC

This package is auto-updated.

Last update: 2024-05-20 15:41:03 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is a Filament InfolistS Component, use for display RepetableEntry as a table.

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.