PHP code example of icetalker / filament-tab-repeater
1. Go to this page and download the library: Download icetalker/filament-tab-repeater library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
icetalker / filament-tab-repeater example snippets
use Icetalker\FilamentTabRepeater\Forms\Components\TabRepeater;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\RichEditor;
$languages = [
'en' => 'English',
'zh-CN' => '中文'
];
TabRepeater::make('translations')
->relationship('translations')
->schema([
Select::make('language_code')
->label('Language')
->options($languages)
->
use App\Forms\Components\TabRepeater;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Support\Icons\Heroicon;
TabRepeater::make('social_links')
->schema([
Select::make('platform')
->options([
'github' => 'GitHub',
'twitter' => 'Twitter',
'linkedin' => 'LinkedIn',
])
->live(), // Re-evaluates icon when selection changes
TextInput::make('url')->url()->