Skip to content

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

Examples

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