calculated-field
calculated-field copied to clipboard
withMeta extraAttributes doesn't work
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?
@codebykyle
Fix? - https://github.com/codebykyle/calculated-field/pull/8
Hi @progcode did you managed to make the readonly work?