You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could there be an easier way of injecting all the tour steps in to one spot now? In the video above, I ended up making a new DiscoverGridTour component that returns the following:
Then, right above the DiscoverGrid component in discover_grid.tsx I was able to inject these tour steps using the following:
...
return(<><DiscoverGridTour/> // <--- Injecting all the steps right here<DiscoverGridContext.Providervalue={{expanded: expandedDoc,
...
We probably don't want tours with more than a handful of steps anyway, but having to manually spread each EuiTourStepProp is a bit clunky - this could be done with a loop or something to make it smaller, but perhaps worth considering another option entirely? Similar to how the EuiTour component works in the "Managed state via EuiTour render prop component" documentation example, but without having to spread each step. Totally possible this already exists and I missed it, though :)
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.
Could there be an easier way of injecting all the tour steps in to one spot now? In the video above, I ended up making a new
DiscoverGridTour
component that returns the following:Then, right above the
DiscoverGrid
component indiscover_grid.tsx
I was able to inject these tour steps using the following:We probably don't want tours with more than a handful of steps anyway, but having to manually spread each
EuiTourStepProp
is a bit clunky - this could be done with a loop or something to make it smaller, but perhaps worth considering another option entirely? Similar to how theEuiTour
component works in the "Managed state via EuiTour render prop component" documentation example, but without having to spread each step. Totally possible this already exists and I missed it, though :)Originally posted by @Heenawter in #5696 (comment)
The text was updated successfully, but these errors were encountered: