F
Filament16mo ago
Zakhaev

change html or make it a button of createoptions icon/button

Hello im using this component in my form to dynamicly add dealers.
->createOptionUsing(function ($data) {
$dealer = new Dealers();
$dealer->fill($data);
$dealer->save();
return $dealer->id;
})
->createOptionUsing(function ($data) {
$dealer = new Dealers();
$dealer->fill($data);
$dealer->save();
return $dealer->id;
})
Can i change the icon in the image to a button or something else. Couldnt find out anything about it
2 Replies
Vp
Vp16mo ago
->createOptionAction(fn ($action) => $action->icon('heroicon')) using this you can change icon
Zakhaev
ZakhaevOP16mo ago
i get this error Unable to locate a class or view for component [heroicon]. oh no it was my fault its working now
Want results from more Discord servers?
Add your server