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