2017 © Pedro Peláez
 

silverstripe-module silverstripe-groupable-gridfield

This module allows drag & drop grouping of items in a GridField

image

micschk/silverstripe-groupable-gridfield

This module allows drag & drop grouping of items in a GridField

  • Monday, June 4, 2018
  • by micschk
  • Repository
  • 1 Watchers
  • 5 Stars
  • 6,587 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

SilverStripe GridField Groupable

Build Status codecov.io, (*1)

This module allows drag & drop grouping of items in a GridField. It bolts on top of- and depends on GridFieldOrderableRows for the drag & drop sorting functionality, (*2)

Screenshot

image, (*3)

Example application (Block Enhancements module): assign content blocks to block-areas by drag & drop, (*4)

Installation

Composer

composer require micschk/silverstripe-groupable-gridfield

Requirements (all pulled in by composer)

  • SilverStripe Framework ~4.0
  • SilverStripe GridFieldExtensions

Usage:

$grid = new GridField(
    'ExampleGrid',
    'Example Grid',
    $this->Items(),
    $gfConfig = GridFieldConfig::create()
        ->addComponent(new GridFieldToolbarHeader())
        ->addComponent(new GridFieldTitleHeader())
        ->addComponent(new GridFieldEditableColumns())
        ->addComponent(new GridFieldOrderableRows())
        ->addComponent(new GridFieldFooter())
);
// add Groupable (example from BlockEnhancements module)
$gfConfig->addComponent(new GridFieldGroupable(
        'BlockArea',    // The fieldname to set the Group
        'Area',   // A description of the function of the group
        'none',         // A title/header for items without a group/unassigned
        array(          // List of available values for the Group field
            'BeforeContent' => 'Before Content',
            'AfterContent' => 'Before Content',
        )
    ));

Thank you

TITLE WEB SOLUTIONS for sponsoring the isolation of this module out of Blocks Enhancements, (*5)

The Versions

04/06 2018

dev-master

9999999-dev http://github.com/micschk/silverstripe-groupable-gridfield

This module allows drag & drop grouping of items in a GridField

  Sources   Download

MIT

The Requires

 

silverstripe gridfield groups

24/08 2016

0.5

0.5.0.0 http://github.com/micschk/silverstripe-groupable-gridfield

This module allows drag & drop grouping of items in a GridField

  Sources   Download

MIT

The Requires

 

silverstripe gridfield groups

22/06 2016

0.4

0.4.0.0 http://github.com/micschk/silverstripe-groupable-gridfield

This module allows drag & drop grouping of items in a GridField

  Sources   Download

MIT

The Requires

 

silverstripe gridfield groups

28/05 2016

0.3

0.3.0.0 http://github.com/micschk/silverstripe-groupable-gridfield

This module allows drag & drop grouping of items in a GridField

  Sources   Download

MIT

The Requires

 

silverstripe gridfield groups

27/05 2016

0.2

0.2.0.0 http://github.com/micschk/silverstripe-groupable-gridfield

This module allows drag & drop grouping of items in a GridField

  Sources   Download

MIT

The Requires

 

silverstripe gridfield groups

27/05 2016

0.1

0.1.0.0 http://github.com/micschk/silverstripe-groupable-gridfield

This module allows drag & drop grouping of items in a GridField

  Sources   Download

The Requires

 

silverstripe gridfield groups