Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select All? #9

Open
axyr opened this issue Apr 25, 2016 · 1 comment
Open

Select All? #9

axyr opened this issue Apr 25, 2016 · 1 comment

Comments

@axyr
Copy link

axyr commented Apr 25, 2016

Would it be possible to augment the gridfield header with a select all checkbox ?

@gavro
Copy link

gavro commented May 11, 2016

It's present, but the "search icon" replaces the checkbox, as it's added as last column.
There's a commented line @ GridFieldCheckboxSelectComponent.php:

    public function augmentColumns($gridField, &$columns) {
//      array_unshift($columns, self::CHECKBOX_COLUMN);
        $columns[] = self::CHECKBOX_COLUMN;
    }

If you uncomment this line, and comment the current active line, you'll get what you want. Or you can change the order yourself using setDisplayFields on your GridField.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants