xini / silverstripe-matrixfieldgroup
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (1.0.0) of this package.
Allows to add form fields in a table like div structure.
Package info
github.com/xini/silverstripe-matrixfieldgroup
Type:silverstripe-module
pkg:composer/xini/silverstripe-matrixfieldgroup
1.0.0
2016-06-06 04:25 UTC
Requires
This package is auto-updated.
Last update: 2023-04-15 00:06:37 UTC
README
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.
Adds a field group that lets you add form field in a table like div structure
Requirements
- SilverStripe 3.1.*
Usage
Here an example of how to add the field table:
$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')
);
}