Hello, I've tried searching about this issue but I'm not sure whether anyone else has had the same problem. When i introduce this step into my tour, having one of them is fine. However, if i put the second step after a few other steps, the terminal tells me this error message below. The strange thing is, if I put the first and second step right after each other, there is no problem.
Basically, I want to make the user click the tab to navigate them towards the next tab, then explain all the functions in the tab, then ask them to click the third tab. I find if I don't use advanceOn and the user clicks the next button, the tour breaks because it's trying to show something that's on the wrong tab.
Error in Conductor$new()$step(title = "Welcome to DataCops! (1/11)", text = "This is a tour to introduce you to our application. You can exit out of the tour at any time by pressing the Esc key, and you can control the tour with your arrow keys. Click next to continue the tour! ", :
target of assignment expands to non-language object
First step
step(
el = "#tabs",
title = "Information tabs",
text = "This is where you can view all the different tabs to see different visualizations! Please click the second tab to continue.",
canClickTarget = TRUE,
advanceOn = list(selector = "#tabs li:nth-child(2)", event = "click"),
buttons = list()
)$
Second step
step(
el = "#tabs",
title = "Information tabs",
text = "This is where you can view all the different tabs to see different visualizations! Please click the third tab to continue.",
canClickTarget = TRUE,
advanceOn = list(selector = "#tabs li:nth-child(3)", event = "click"),
buttons = list()
)$
This order returns me the problem
conductor <- Conductor$
new()$
step(
title = "Welcome to DataCops! (1/11)",
text = "This is a tour to introduce you to our application. You can exit out of the tour at any time by pressing the Esc key, and you can control the tour with your arrow keys. Click next to continue the tour! ",
tab = "General Overview/Trend Visualiser",
buttons = list(list(action = "next", text = "Next")),
)$
step(
el = "#tabs",
title = "Information tabs",
text = "This is where you can view all the different tabs to see different visualizations! Please click the second tab to continue.",
canClickTarget = TRUE,
advanceOn = list(selector = "#tabs li:nth-child(2)", event = "click"),
buttons = list()
)$
step(
title = "Trend Visualiser",
text = "This is where you can see a heatmap and histogram of the selected timeframe.",
tab = "General Overview/Trend Visualiser"
)$
step(
el = "#view",
title = "Filter Data",
text = "These buttons allow you to filter the data by day, month, year, or view all data. It's recommended to filter the data when using large datasets as the application may lag!",
tab = "General Overview/Trend Visualiser",
canClickTarget = FALSE
)$
step(
el = "#tabs",
title = "Information tabs",
text = "This is where you can view all the different tabs to see different visualizations! Please click the third tab to continue.",
canClickTarget = TRUE,
advanceOn = list(selector = "#tabs li:nth-child(3)", event = "click"),
buttons = list()
)$
This order doesn't
conductor <- Conductor$
new()$
step(
title = "Welcome to DataCops! (1/11)",
text = "This is a tour to introduce you to our application. You can exit out of the tour at any time by pressing the Esc key, and you can control the tour with your arrow keys. Click next to continue the tour! ",
tab = "General Overview/Trend Visualiser",
buttons = list(list(action = "next", text = "Next")),
)$
step(
el = "#tabs",
title = "Information tabs",
text = "This is where you can view all the different tabs to see different visualizations! Please click the second tab to continue.",
canClickTarget = TRUE,
advanceOn = list(selector = "#tabs li:nth-child(2)", event = "click"),
buttons = list()
)$
step(
el = "#tabs",
title = "Information tabs",
text = "This is where you can view all the different tabs to see different visualizations! Please click the third tab to continue.",
canClickTarget = TRUE,
advanceOn = list(selector = "#tabs li:nth-child(3)", event = "click"),
buttons = list()
)$
step(
title = "Trend Visualiser",
text = "This is where you can see a heatmap and histogram of the selected timeframe.",
tab = "General Overview/Trend Visualiser"
)$
This is the id of the tabsetpanel.
ui <- fluidPage(
useConductor(),
tabsetPanel(
id = 'tabs',
tabPanel("About DataCops", div(