Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

withMeta extraAttributes doesn't work #11

Open
progcode opened this issue Mar 4, 2020 · 3 comments
Open

withMeta extraAttributes doesn't work #11

progcode opened this issue Mar 4, 2020 · 3 comments

Comments

@progcode
Copy link

progcode commented Mar 4, 2020

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
Copy link
Author

progcode commented Mar 4, 2020

@codebykyle

@progcode
Copy link
Author

Fix? - #8

@jhayg12
Copy link

jhayg12 commented Dec 3, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants