calculated-field icon indicating copy to clipboard operation
calculated-field copied to clipboard

withMeta extraAttributes doesn't work

Open progcode opened this issue 4 years ago • 3 comments

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?

progcode avatar Mar 04 '20 15:03 progcode

@codebykyle

progcode avatar Mar 04 '20 20:03 progcode

Fix? - https://github.com/codebykyle/calculated-field/pull/8

progcode avatar Mar 11 '20 19:03 progcode

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

jhayg12 avatar Dec 03 '20 05:12 jhayg12