Allows to add form fields in a table like div structure.
Adds a field group that lets you add form field in a table like div structure
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')
);
}
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem