dfe-analytical-services / dfeshiny

R package containing preferred methods for creating official DfE R Shiny dashboards
https://dfe-analytical-services.github.io/dfeshiny/
GNU General Public License v3.0
4 stars 1 forks source link

Cookies examples update #38

Closed cjrace closed 4 weeks ago

cjrace commented 3 months ago

I've added a single example of how to use the cookies functions in a minimal shiny app that we can reuse across the documentation for all of our cookies family of functions. Main change here is in the cookies.R script - expand the diff there to review

While doing so I also took the liberty of adding in more default arguments so that analysts don't need to add as much code, so I've made the defaults what was suggested and then removed those arguments from the examples to encourage analysts to just keep the defaults.

Additional notes:

cjrace commented 1 month ago

Update cookies script examples in dfeshiny

jen-machin commented 4 weeks ago
image

Some of the examples end up inside a box with a scrollbar on the documentation site - is there any way around this?

cjrace commented 4 weeks ago
image

Some of the examples end up inside a box with a scrollbar on the documentation site - is there any way around this?

Ah yeah, that was my bad, I forgot to wrap the example in a way that stopped it actually running, should be better now?