codebykyle / calculated-field

A Server Side Calculated Field for Laravel Nova

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

withMeta extraAttributes doesn't work

progcode opened this issue · comments

commented

I have the following field:
ListenerField::make('Jóváírt kredit', 'new_credits') ->sortable() ->help('<b>Automatikusan kerül kiszámításra a fizetendő összegből!</b>') ->withMeta([ 'extraAttributes' => [ 'readonly' => 'readonly' ], ]) ->calculateWith(function (Collection $values) { $order_total = $values->get('order_total'); return (($order_total/100)*5); })->rules('required')

but unfortunately the withMeta not working, the readonly attribute not setting on input. How can I do this?

commented

Fix? - #8

Hi @progcode did you managed to make the readonly work?