finalize_question {learnr}R 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")
  )
)


[Package learnr version 0.11.5 Index]