nuovo2023
Send Model to widget
Hello everyone, I need some help with this one.
I made a custom page, that will have widgets, but I'm trying to reuse the same widget, and add one per client, that's not the problem. the problem is, How can I send a model to a widget in order to show relevant data?
protected function getHeaderWidgets(): array
{
return [
CustomerStatus::make() // 1,
CustomerStatus::make() // 2,
];
}
The widget in mention is one based on BaseWidget, with a table in it.
Thanks for the help.
4 replies