area17 / twill

Twill is an open source CMS toolkit for Laravel that helps developers rapidly create a custom admin console that is intuitive, powerful and flexible. Chat with us on Discord at https://discord.gg/cnWk7EFv8R.
https://twillcms.com
Apache License 2.0
3.71k stars 567 forks source link

buttonAsLink option doesn't work on Inline Repeaters #2521

Closed danieldevine closed 3 months ago

danieldevine commented 5 months ago

Description

The buttonAsLink option has no effect in an inline repeater using the form builder.

Steps to reproduce

Add an inline repeater field in a block component and add the buttonAsLink option.

InlineRepeater::make()->name('buttons')
            ->fields([
                Input::make()->name('title'),
                Input::make()->name('url'),
            ])->buttonAsLink(true);

Expected result

The button should display as a centred text link

Actual result

Undefined method 'buttonAsLink'

Versions

Twill version: 3.2.0