PHP code example of balintcodes / filament-enhanced-datalist

1. Go to this page and download the library: Download balintcodes/filament-enhanced-datalist 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/ */

    

balintcodes / filament-enhanced-datalist example snippets




FilamentEnhancedDatalist::make('enhanced_datalist')
    ->options(['One', 'Two', 'Three'])  // Options that should appear in the datalist (array)
    ->filterDatalist()                  // Whether the datalist should be filtered during typing (bool)
    ->chevronVisible()                  // Whether the dropdown chevron should be visible (bool)
    ->infoLabel('Select a number')      // Customize the information label on the top of the datalist (string)
    ->label('Enhanced datalist')        
    ->minLength(2)
    ->maxLength(16)
    ->readOnly()
    ->prefix('Prefix')
    ->postfix('Postfix')
    ->placeholder('Choose a number');