Daniel Ravenshorst
06/18/2021, 8:49 AMtrigger
button is not rendered.
It will render the form if that page has already some data with repeaters, but with new pages I cant get the repeater form to render because the trigger button isn't there.
While debugging in vue-devtools I found that the computed
-> blockType
is always empty. Also the availableBlocks
is empty.
So the trigger button in Repeater.vue
uses: v-if="hasRemainingBlocks && blockType.trigger"
, so I think this is the issue, but don't know how to fix.
Any advice how to fix this?Daniel Ravenshorst
06/18/2021, 8:49 AMblocks/test_parent.blade.php
blade
@twillBlockTitle('Test parent')
@twillBlockIcon('text')
@formField('repeater', ['type' => 'test_child'])
repeaters/test_child.blade.php
blade
@twillRepeaterTitle('Test child')
@twillRepeaterTrigger('Add test child')
@formField('input', [
'name' => 'title',
'label' => 'Title'
])
ifox
06/18/2021, 9:04 AMDaniel Ravenshorst
06/18/2021, 9:12 AMifox
06/18/2021, 10:24 AMdaniel@daniel.test
/ daniel
Sandbox: https://phpsandbox.io/n/shiny-surf-mppe-pc34e
Not sure what's happening for you, as this is working great in this fresh application. Make sure you updated your Twill assets using php artisan twill:update
or php artisan twill:build
if you're using custom Vue components.Mitchell Smith
06/18/2021, 1:40 PMMitchell Smith
06/18/2021, 1:41 PMifox
06/18/2021, 1:58 PMMitchell Smith
06/18/2021, 2:01 PMifox
06/18/2021, 2:02 PMMitchell Smith
06/18/2021, 2:02 PMMitchell Smith
06/18/2021, 2:20 PMifox
06/18/2021, 2:21 PMuser
06/18/2021, 2:21 PMuser
06/18/2021, 2:22 PMuser
06/18/2021, 2:22 PMphp artisan twill:install
and php artisan twill:superadmin
but I keep getting the instant 'Aborted' message.user
06/18/2021, 2:23 PMMitchell Smith
06/18/2021, 2:23 PMuser
06/18/2021, 2:29 PMphp artisan twill:superadmin myemail@mydomain.com
and you will get prompted with password input.Mitchell Smith
06/18/2021, 2:35 PMMitchell Smith
06/18/2021, 2:37 PMifox
06/18/2021, 2:41 PMMitchell Smith
06/18/2021, 2:43 PMifox
06/18/2021, 2:44 PMifox
06/18/2021, 2:44 PMifox
06/18/2021, 2:44 PMMitchell Smith
06/18/2021, 2:44 PMifox
06/18/2021, 2:45 PMblock_editor
form field to your form view?Mitchell Smith
06/18/2021, 2:45 PM