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
Lukas Jankauskas
Lukas Jankauskas13mo ago
Silly me. Figured it out. Register same public properties in widgets; and use :widget-data in the custom page
Saifallak
Saifallak13mo ago
@lukasjankauskas this solved my problem, thanks for sharing the solution
Lukas Jankauskas
Lukas Jankauskas13mo ago
Np. I eventually opted for events as I needed reactivity
Saifallak
Saifallak13mo ago
i needed it for static data, but use same widget just with diffrent parameters so it worked with me thanks again