InitialRows with default state
Closed this issue · 1 comments
webspilka commented
Hi
I have default rows state. Is it possible to set this state on form first initialization ?
webspilka commented
Ok
I solved this, simply add default value for laravel model $attributes
for example
protected $attributes = [
'errors' => '[{"comment":"error -1","type":"ok"},{"comment":"error -2","type":"notice"}]',
];
}