xowf::test_item::Answer_manager method render_print_button (protected)

 <instance of xowf::test_item::Answer_manager[i]> render_print_button

Defined in packages/xowf/tcl/test-item-procs.tcl

Render a simple print button for the unaware that makes it easy to print the exam protocol to PDF and use e.g. a pdf-tool to annotate free text answers. The function is designed to work with streaming HTML output.

Returns:
HTML rendering

Testcases:
No testcase defined.
Source code:
template::add_event_listener  -id print-button  -event click  -preventdefault=false  -script "window.print();"

return [ns_trim -delimiter | [subst {
  |<adp:button class="btn btn-default" id="print-button">
  |[::xowiki::bootstrap::icon -name print] print
  |</adp:button>
  |[template::collect_body_scripts]
}]]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: