nova-medialibrary-field icon indicating copy to clipboard operation
nova-medialibrary-field copied to clipboard

how to config customPropertiesFields ?

Open guoxiangke opened this issue 1 year ago • 2 comments

hi, how can I acheve like this, thanks! image

image

guoxiangke avatar Oct 12 '23 04:10 guoxiangke

@see https://github.com/ebess/advanced-nova-media-library


Files::make('Multiple files', 'multiple_files')
    ->customPropertiesFields([
        Boolean::make('Active'),
        Markdown::make('Description'),
    ]);
    
// custom properties without user input
Files::make('Multiple files', 'multiple_files')
    ->customProperties([
        'foo' => auth()->user()->foo,
        'bar' => $api->getNeededData(),
    ]);

guoxiangke avatar Oct 12 '23 05:10 guoxiangke

@guoxiangke Try this https://github.com/dmitrybubyakin/nova-medialibrary-field#fields

dmitrybubyakin avatar Oct 12 '23 05:10 dmitrybubyakin