We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setAddElement()
1 parent 7bb3344 commit 97a0dbbCopy full SHA for 97a0dbb
tests/CollectionTest.php
@@ -207,9 +207,9 @@ public function testMultipleCollections()
207
208
$inner = (new Collection('innerCollection'))
209
->setLabel('Inner Collection')
210
- ->setAddElement(new SubmitButtonElement('inner_add_trigger', [
+ ->setAddElement('submitButton', 'inner_add_trigger', [
211
'label' => 'Inner Add Trigger'
212
- ]));
+ ]);
213
214
$inner->onAssembleGroup(function ($innerGroup, $innerAddElement, $innerRemoveElement) {
215
$innerGroup->addElement($innerAddElement);
0 commit comments