PHP code example of marvinosswald / filament-input-select-affix
1. Go to this page and download the library: Download marvinosswald/filament-input-select-affix 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/ */
marvinosswald / filament-input-select-affix example snippets
TextInputSelectAffix::make('weight_value')
->numeric()
->select(fn() => Forms\Components\Select::make('weight_unit')
->extraAttributes([
'class' => 'w-[72px]' // if you want to constrain the selects size, depending on your usecase
])
->options([
'mm' => 'mm',
'm' => 'm'
])
),