Skip to content

balintcodes/filament-enhanced-datalist

Repository files navigation

An enhanced version of text input with datalist for FilamentPHP

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

An implementation of text input fields with datalist that matches the looks of the FilamentPHP ecosystem.

example.png

Installation

You can install the package via composer:

composer require balintcodes/filament-enhanced-datalist

Usage

include Balintcodes\FilamentEnhancedDatalist;

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');

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.

About

An enhanced version of text input with datalist for FilamentPHP

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors