PHP code example of rupadana / filament-custom-forms
1. Go to this page and download the library: Download rupadana/filament-custom-forms 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/ */
rupadana / filament-custom-forms example snippets
InputGroup::make(3)
->label('Input Group')
->schema([
TextInput::make('first'),
Select::make('second'),
ColorPicker::make('third'),
])
InputGroup::make(3)
->showChildLabel()
->schema([
TextInput::make('first'),
Select::make('second'),
ColorPicker::make('third'),
])
InputSliderGroup::make()
->sliders([
InputSlider::make('column_name')
])
->label('Column Name')
InputSliderGroup::make()
->sliders([
InputSlider::make('column_min')
InputSlider::make('column_max')
])
->label('Column Name')
InputSliderGroup::make()
->sliders([
InputSlider::make('column_min')
InputSlider::make('column_max')
])
->connect([
false,
true,
false
])
->label('Column Name')
InputSliderGroup::make()
->sliders([
InputSlider::make('column_min')
InputSlider::make('column_max')
])
->connect([
false,
true,
false
])
->max(100)
->min(0)
->label('Column Name')
InputSliderGroup::make()
->sliders([
InputSlider::make('column_min'),
InputSlider::make('column_max')->default(50),
])
->connect([
true,
false,
true
]) // array length must be sliders length + 1
->range([
"min" => 30,
"max" => 100
])
->step(10)
->behaviour([
InputSliderBehaviour::DRAG,
InputSliderBehaviour::TAP
])
->enableTooltips()
->label("Input Slider")