outl1ne/nova-simple-repeatable

Field don't support show options

keizah7 opened this issue · 5 comments

            SimpleRepeatable::make(__('Photos'), 'photos', [
                Text::make(__('Link'), 'link')
                    ->rules('required')
                    ->onlyOnForms(),

                Text::make(__('Link'), fn () => '<a href="/admin/resources/cities/4" class="no-underline font-bold dim text-primary">test</a>')
                    ->rules('required')
                    ->asHtml()
                    ->onlyOnDetail(),
            ]),
            

image

Hi! What do you mean?

->resolveUsing() seems to work perfectly for me.

Can't make field ->asHtml()

Seems to work perfectly for me. Are you using some field that isn't Text?

I was using Text with ->asHtml()

But even your screenshot shows that the link exists? I'm really confused as to what exactly isn't working. :(