pboivin
10/01/2021, 3:43 PMafatmustafa
10/01/2021, 3:44 PMpboivin
10/01/2021, 3:45 PMendpoint should be:
@formField('browser', [
'endpoints' => [
[
'label' => 'Users',
'value' => '/users/browser',
],
],
'name' => 'users',
'label' => 'Users',
])afatmustafa
10/01/2021, 3:47 PMafatmustafa
10/01/2021, 3:47 PMafatmustafa
10/01/2021, 3:47 PMKlief
10/03/2021, 2:10 PMifox
10/03/2021, 3:06 PMLuís Novais
10/03/2021, 3:17 PMifox
10/03/2021, 3:18 PMblocks relationshipLuís Novais
10/03/2021, 3:32 PMifox
10/03/2021, 4:07 PM$block->input('title') or translatedInput if the field is translatableLuís Novais
10/03/2021, 7:47 PMifox
10/03/2021, 7:49 PMwhere('parent_id', null) or filter by typeLuís Novais
10/03/2021, 8:43 PMifox
10/03/2021, 8:45 PM$block->childrenLuís Novais
10/03/2021, 8:48 PMifox
10/03/2021, 8:53 PMLuís Novais
10/03/2021, 9:27 PMifox
10/03/2021, 10:07 PMdelta107
10/04/2021, 7:47 AMdelta107
10/04/2021, 7:47 AMdelta107
10/04/2021, 8:01 AMdelta107
10/04/2021, 8:01 AMdelta107
10/04/2021, 8:32 AMdelta107
10/04/2021, 8:32 AMdelta107
10/04/2021, 8:33 AMifox
10/04/2021, 8:57 AM'type' => 'textarea' on the input field
- node/npm LTS is recommended but using latest should not be a problem
- there is a difference between custom blocks and custom components. what you are looking for, when building a custom field, is most likely a custom component. you can take inspiration for the source of any existing Vue component that powers internal form fields. A custom block is meant to be used inside the block editor only.delta107
10/04/2021, 8:58 AM