Sami
11/09/2021, 8:01 PMSami
11/09/2021, 8:07 PMifox
11/09/2021, 8:18 PMSami
11/09/2021, 8:18 PMifox
11/09/2021, 8:31 PMgetBrowserItemsifox
11/09/2021, 8:32 PMSami
11/09/2021, 8:34 PMLuís Novais
11/10/2021, 12:11 AMifox
11/10/2021, 12:16 AMifox
11/10/2021, 12:17 AMLuís Novais
11/10/2021, 12:22 AMifox
11/10/2021, 12:38 AMLuís Novais
11/10/2021, 12:40 AMLuís Novais
11/10/2021, 12:49 AMifox
11/10/2021, 1:04 AMifox
11/10/2021, 1:05 AM'type' => 'event_item'Sami
11/10/2021, 7:41 AM<repeater>.blade.php?
The reason is I need to pass an ID which will be used in browser's params
For passing to module edit form, I just overridden edit() in proper controllerpboivin
11/10/2021, 1:42 PMView::share() (like a list of options for a select field) but it's not easy to pass specific data to specific repeater items (like an ID).
This will be improved for sure. As a workaround, I think this may be an interesting direction to explore: https://github.com/area17/twill/discussions/1079#discussioncomment-1140370
TLDR: you can get the repeater item's ID from the Vue.js parent componentSami
11/10/2021, 3:53 PMView::share(). I call this in a controller of edited entitySami
11/11/2021, 1:38 PMSami
11/11/2021, 1:38 PMSami
11/11/2021, 1:39 PMgetIndexData($prependScope = []) function that I think I should override but I'm not familiar with what (and how) should be put in the $prependScope arrayifox
11/11/2021, 1:40 PMifox
11/11/2021, 1:41 PMSami
11/11/2021, 1:42 PMifox
11/11/2021, 1:45 PMSami
11/11/2021, 1:46 PMSami
11/11/2021, 1:47 PM$query and it works as expected, thanks.
But since we're talking about this, I would like to know how would the $scopes array be used there