generic: Enable code-folding

Description Usage Arguments Value

View source: R/fold.R

Description

Enable code-folding

Usage

1
2
3
4
5
6
generic(init = c("show", "hide"), query, style)

bookdown(init = c("show", "hide"), query = "pre.sourceCode",
  style = "position: absolute; right: 8%; z-index: 200")

distill(init = c("show", "hide"), query = "d-code", style = "")

Arguments

init

character indictates to "show" or "hide" code blocks at initialization.

query

character CSS-selector string for code blocks.

style

character CSS style for the button.

Value

htmltools::tagList


ijlyttle/codefolder documentation built on Nov. 5, 2019, 2:18 p.m.