balintcodes/filament-enhanced-datalist

An enhanced version of text input with datalist for FilamentPHP

v1.1.2 2024-11-27 10:17 UTC

This package is auto-updated.

Last update: 2025-05-01 00:20:16 UTC


README

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.