2017 © Pedro Peláez
 

silverstripe-module silverstripe-matrixfieldgroup

Allows to add form fields in a table like div structure.

image

xini/silverstripe-matrixfieldgroup

Allows to add form fields in a table like div structure.

  • Monday, June 6, 2016
  • by xini
  • Repository
  • 1 Watchers
  • 2 Stars
  • 65 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

silverstripe-matrixfieldgroup

This is an archived project and is no longer maintained. Please do not file issues or pull-requests against this repo. If you wish to continue to develop this code yourself, we recommend you fork it or contact us., (*1)

Adds a field group that lets you add form field in a table like div structure, (*2)

Requirements

  • SilverStripe 3.1.*

Usage

Here an example of how to add the field table:, (*3)

$matrixfield = MatrixFieldGroup::create("Finances")
    ->setColumnHeaders(array(
        "Account",
        "Debit",
        "Credit"
    ));

$objects = SomeObject::get();

foreach ($objects as $object) {
    // add row for each object
    $catalogueFields->addRow(
        $object->Title,
        NumericField::create('Debit['.$object->ID.']', $object->Title.': Debit')
            ->addExtraClass('hiddenLabel'),
        NumericField::create('Credit['.$object->ID.']', $object->Title.': Credit')
            ->addExtraClass('hiddenLabel')
    );
}

The Versions

06/06 2016

dev-master

9999999-dev

Allows to add form fields in a table like div structure.

  Sources   Download

The Requires

 

form table silverstripe field

06/06 2016

1.0.0

1.0.0.0

Allows to add form fields in a table like div structure.

  Sources   Download

The Requires

 

form table silverstripe field