Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Doc: ask shinymetrics consent with shinyMobile #7

Open
DivadNojnarg opened this issue Jul 15, 2023 · 2 comments
Open

Doc: ask shinymetrics consent with shinyMobile #7

DivadNojnarg opened this issue Jul 15, 2023 · 2 comments

Comments

@DivadNojnarg
Copy link

A working pattern you could use in the doc:

shinymetrics_server()

    observe({
      # shinymetrics tracking is already enabled
      # no need to show the modal
      if(is.null(input$shinymetricsEnabled))
        return()

      if(input$shinymetricsEnabled)
        return()

      f7Dialog(
        id = "tracking",
        type = "confirm",
        title = "Tracking?",
        text = "Enable tracking?"
      )
    })

    observeEvent(input$tracking, {
      if (input$tracking) {
        shinymetrics_enable()
      }
    })
@JohnCoene
Copy link
Member

I want to add a vignettes for examples for various frameworks:

  • bs4Dash
  • shinymobile
  • etc.

@JohnCoene
Copy link
Member

Note: see interactions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants