finalize_question: Finalize a question

View source: R/mutate_tags.R

finalize_questionR Documentation

Finalize a question

Description

Mark a question as finalized by adding a question-final class to the HTML output at the top level, in addition to disabling all tags with disable_all_tags().

Usage

finalize_question(ele)

Arguments

ele

html tag element

Value

An htmltools HTML object with appropriately appended classes such that a tutorial question is marked as the final answer.

Examples

# finalize the question UI
finalize_question(
  htmltools::div(
    class = "custom-question",
    htmltools::div("answer 1"),
    htmltools::div("answer 2")
  )
)


learnr documentation built on Sept. 28, 2023, 9:06 a.m.