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 JankauskasOP2y 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
Lukas Jankauskas
Lukas JankauskasOP17mo ago
Np. I eventually opted for events as I needed reactivity
Saifallak
Saifallak17mo ago
i needed it for static data, but use same widget just with diffrent parameters so it worked with me thanks again
Want results from more Discord servers?
Add your server