Skip to content

A component for the Silverstripe Gridfield, with which letters and numbers can be displayed as filters.

License

Notifications You must be signed in to change notification settings

clesson-de/silverstripe-charfilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silverstripe Charfilter

The Charfilter is another component for the Silverstripe Gridfield. The purpose of this component is to display a series of letters, numbers or characters as buttons in order to filter a value in the data list according to these characters.

Installation

Add this to composer.json in your project

    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/clesson-de/silverstripe-charfilter.git"
        }
    ],

and then execute in command line:

composer require clesson-de/silverstripe-charfilter

Documentation

Simply add the component to a Gridfield configuration. Define a field that is to be sorted. And optionally specify the characters to be filtered by.

$config = $gridfield->getConfig();
// add the component and let it filter the "Name" property
$config->addComponent(new GridField_CharFilter('before', 'Name', ['a','b','c']));

About

A component for the Silverstripe Gridfield, with which letters and numbers can be displayed as filters.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages