F
Filament2y ago
LJ

Pass data to widget

Hi, Just wondering - is there any way to make public vars for $periodStart and $periodEnd accessibly by included widgets? For reference; the widgets are called from a custom page and don't reference to record at all. I basically need to be able to change start/end dates and have widgets update the data based on those dates
4 Replies
LJ
LJOP2y ago
Silly me. Figured it out. Register same public properties in widgets; and use :widget-data in the custom page
Saifallak
Saifallak2y ago
@lukasjankauskas this solved my problem, thanks for sharing the solution
LJ
LJOP2y ago
Np. I eventually opted for events as I needed reactivity
Saifallak
Saifallak2y ago
i needed it for static data, but use same widget just with diffrent parameters so it worked with me thanks again

Did you find this page helpful?