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

Partial Call Graph (max 5 caller/called nodes):
%3 template::add_event_listener template::add_event_listener (public) template::collect_body_scripts template::collect_body_scripts (public) xowiki::bootstrap::icon xowiki::bootstrap::icon (public) xowf::test_item::Answer_manager instproc render_print_button xowf::test_item::Answer_manager instproc render_print_button xowf::test_item::Answer_manager instproc render_print_button->template::add_event_listener xowf::test_item::Answer_manager instproc render_print_button->template::collect_body_scripts xowf::test_item::Answer_manager instproc render_print_button->xowiki::bootstrap::icon

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 {
  |<button class="btn [::xowiki::CSS class btn-default]" id="print-button">
  |[::xowiki::bootstrap::icon -name print] print
  |</button>
  |[template::collect_body_scripts]
}]]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: