• Publicity: Public Only All

bootstrap-procs.tcl

bootstrap procs: provide some (initial) support for bootstrap library

This file defines the following Objects and Classes: ::xowiki::BootstrapNavbarDropzone[i], ::xo::Table::BootstrapTableRenderer::AnchorField[i], ::xowiki::BootstrapNavbarDropzone[i], ::xo::Table::BootstrapTableRenderer::AnchorField[i]

Location:
packages/xowiki/tcl/bootstrap-procs.tcl
Created:
2014-04-14
Authors:
Günter Ernst
Gustaf Neumann
CVS Identification:
$Id: bootstrap-procs.tcl,v 1.11.2.35 2023/08/03 11:15:13 gustafn Exp $

Procedures in this file

Detailed information

Class ::xo::Table::BootstrapTableRenderer::AnchorField (public)

 ::xotcl::Class ::xo::Table::BootstrapTableRenderer::AnchorField[i]

In addition to the standard TableWidget's AnchorField, we also allow the attributes

  • onclick
  • target

Partial Call Graph (max 5 caller/called nodes):
%3 html::a html::a nsf::object::alloc nsf::object::alloc nsf::relation::set nsf::relation::set template::add_event_listener template::add_event_listener (public) Class ::xo::Table::BootstrapTableRenderer::AnchorField Class ::xo::Table::BootstrapTableRenderer::AnchorField Class ::xo::Table::BootstrapTableRenderer::AnchorField->html::a Class ::xo::Table::BootstrapTableRenderer::AnchorField->nsf::object::alloc Class ::xo::Table::BootstrapTableRenderer::AnchorField->nsf::relation::set Class ::xo::Table::BootstrapTableRenderer::AnchorField->template::add_event_listener

Testcases:
No testcase defined.

Class ::xowiki::BootstrapNavbarDropzone (public)

 ::xo::tdom::Class ::xowiki::BootstrapNavbarDropzone[i] [ -href href ] \
    [ -label label ] [ -file_name_prefix file_name_prefix ] \
    [ -disposition disposition ]

Dropzone widget for drag and drop of files, e.g. in the menubar. The widget provides added support for updating the current page with feedback of the dropped files.

Switches:
-href
(optional)
URL for POST request
-label
(optional)
Text to be displayed at the place where files are dropped to
-file_name_prefix
(optional)
prefix for files being uploaded (used e.g. by the online exam).
-disposition
(optional)
define, what happens after the file was uploaded, e.g. whether the content has to be transformed, stored and displayed later.

Partial Call Graph (max 5 caller/called nodes):
%3 html::CSRFToken html::CSRFToken html::button html::button html::div html::div html::form html::form html::input html::input Class ::xowiki::BootstrapNavbarDropzone Class ::xowiki::BootstrapNavbarDropzone Class ::xowiki::BootstrapNavbarDropzone->html::CSRFToken Class ::xowiki::BootstrapNavbarDropzone->html::button Class ::xowiki::BootstrapNavbarDropzone->html::div Class ::xowiki::BootstrapNavbarDropzone->html::form Class ::xowiki::BootstrapNavbarDropzone->html::input

Testcases:
No testcase defined.

xowiki::BootstrapNavbar instproc render (public)

 <instance of xowiki::BootstrapNavbar[i]> render

http://getbootstrap.com/components/#navbar

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_folder_with_page create_folder_with_page (test xowf) xowiki::BootstrapNavbar instproc render xowiki::BootstrapNavbar instproc render test_create_folder_with_page->xowiki::BootstrapNavbar instproc render test_create_workflow_with_instance create_workflow_with_instance (test xowf) test_create_workflow_with_instance->xowiki::BootstrapNavbar instproc render html::div html::div xowiki::BootstrapNavbar instproc render->html::div html::nav html::nav xowiki::BootstrapNavbar instproc render->html::nav html::ul html::ul xowiki::BootstrapNavbar instproc render->html::ul

Testcases:
create_folder_with_page, create_workflow_with_instance

xowiki::BootstrapNavbarDropdownMenu instproc render (public)

 <instance of xowiki::BootstrapNavbarDropdownMenu[i]> render

doku

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_folder_with_page create_folder_with_page (test xowf) xowiki::BootstrapNavbarDropdownMenu instproc render xowiki::BootstrapNavbarDropdownMenu instproc render test_create_folder_with_page->xowiki::BootstrapNavbarDropdownMenu instproc render test_create_workflow_with_instance create_workflow_with_instance (test xowf) test_create_workflow_with_instance->xowiki::BootstrapNavbarDropdownMenu instproc render html::a html::a xowiki::BootstrapNavbarDropdownMenu instproc render->html::a html::li html::li xowiki::BootstrapNavbarDropdownMenu instproc render->html::li html::t html::t xowiki::BootstrapNavbarDropdownMenu instproc render->html::t html::ul html::ul xowiki::BootstrapNavbarDropdownMenu instproc render->html::ul

Testcases:
create_folder_with_page, create_workflow_with_instance

xowiki::BootstrapNavbarDropdownMenuItem instproc render (public)

 <instance of xowiki::BootstrapNavbarDropdownMenuItem[i]> render

doku

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_folder_with_page create_folder_with_page (test xowf) xowiki::BootstrapNavbarDropdownMenuItem instproc render xowiki::BootstrapNavbarDropdownMenuItem instproc render test_create_folder_with_page->xowiki::BootstrapNavbarDropdownMenuItem instproc render test_create_workflow_with_instance create_workflow_with_instance (test xowf) test_create_workflow_with_instance->xowiki::BootstrapNavbarDropdownMenuItem instproc render html::a html::a xowiki::BootstrapNavbarDropdownMenuItem instproc render->html::a html::li html::li xowiki::BootstrapNavbarDropdownMenuItem instproc render->html::li html::t html::t xowiki::BootstrapNavbarDropdownMenuItem instproc render->html::t template::add_event_listener template::add_event_listener (public) xowiki::BootstrapNavbarDropdownMenuItem instproc render->template::add_event_listener

Testcases:
create_folder_with_page, create_workflow_with_instance

xowiki::BootstrapNavbarDropzone instproc render (public)

 <instance of xowiki::BootstrapNavbarDropzone[i]> render

doku

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_folder_with_page create_folder_with_page (test xowf) xowiki::BootstrapNavbarDropzone instproc render xowiki::BootstrapNavbarDropzone instproc render test_create_folder_with_page->xowiki::BootstrapNavbarDropzone instproc render test_create_workflow_with_instance create_workflow_with_instance (test xowf) test_create_workflow_with_instance->xowiki::BootstrapNavbarDropzone instproc render html::CSRFToken html::CSRFToken xowiki::BootstrapNavbarDropzone instproc render->html::CSRFToken html::button html::button xowiki::BootstrapNavbarDropzone instproc render->html::button html::div html::div xowiki::BootstrapNavbarDropzone instproc render->html::div html::form html::form xowiki::BootstrapNavbarDropzone instproc render->html::form html::input html::input xowiki::BootstrapNavbarDropzone instproc render->html::input

Testcases:
create_folder_with_page, create_workflow_with_instance

xowiki::bootstrap::card (public)

 xowiki::bootstrap::card -title title -body body [ -CSSclass CSSclass ]

Render a Bootstrap Card.

Switches:
-title
(required)
-body
(required)
-CSSclass
(optional)
Returns:
HTML

Partial Call Graph (max 5 caller/called nodes):
%3 Class ::xowf::test_item::Answer_manager Class ::xowf::test_item::Answer_manager (public) xowiki::bootstrap::card xowiki::bootstrap::card Class ::xowf::test_item::Answer_manager->xowiki::bootstrap::card Class ::xowf::test_item::Question_manager Class ::xowf::test_item::Question_manager (public) Class ::xowf::test_item::Question_manager->xowiki::bootstrap::card xowf::test_item::Answer_manager instproc answers_panel xowf::test_item::Answer_manager instproc answers_panel (public) xowf::test_item::Answer_manager instproc answers_panel->xowiki::bootstrap::card xowf::test_item::Answer_manager instproc waiting_room_message xowf::test_item::Answer_manager instproc waiting_room_message (public) xowf::test_item::Answer_manager instproc waiting_room_message->xowiki::bootstrap::card xowf::test_item::Question_manager instproc hint_box xowf::test_item::Question_manager instproc hint_box (protected) xowf::test_item::Question_manager instproc hint_box->xowiki::bootstrap::card

Testcases:
No testcase defined.

xowiki::bootstrap::icon (public)

 xowiki::bootstrap::icon -name name [ -style style ] \
    [ -CSSclass CSSclass ]

Render a Bootstrap Icon.

Switches:
-name
(required)
-style
(optional)
-CSSclass
(optional)
Returns:
HTML

Partial Call Graph (max 5 caller/called nodes):
%3 Class ::xowf::test_item::Answer_manager Class ::xowf::test_item::Answer_manager (public) xowiki::bootstrap::icon xowiki::bootstrap::icon Class ::xowf::test_item::Answer_manager->xowiki::bootstrap::icon Class ::xowf::test_item::Question_manager Class ::xowf::test_item::Question_manager (public) Class ::xowf::test_item::Question_manager->xowiki::bootstrap::icon xowf::test_item::Answer_manager instproc render_answers xowf::test_item::Answer_manager instproc render_answers (public) xowf::test_item::Answer_manager instproc render_answers->xowiki::bootstrap::icon xowf::test_item::Answer_manager instproc render_print_button xowf::test_item::Answer_manager instproc render_print_button (protected) xowf::test_item::Answer_manager instproc render_print_button->xowiki::bootstrap::icon xowf::test_item::Question_manager instproc aggregated_form xowf::test_item::Question_manager instproc aggregated_form (public) xowf::test_item::Question_manager instproc aggregated_form->xowiki::bootstrap::icon

Testcases:
No testcase defined.

xowiki::bootstrap::modal_dialog (public)

 xowiki::bootstrap::modal_dialog -id id -title title \
    [ -subtitle subtitle ] -body body

Generic modal dialog wrapper.

Switches:
-id
(required)
-title
(required)
HTML markup for the modal title (can contain tags)
-subtitle
(optional)
HTML markup for the modal subtitle (can contain tags)
-body
(required)
HTML markup for the modal body (can contain tags)
Returns:
HTML markup

Partial Call Graph (max 5 caller/called nodes):
%3 Class ::xowf::test_item::Answer_manager Class ::xowf::test_item::Answer_manager (public) xowiki::bootstrap::modal_dialog xowiki::bootstrap::modal_dialog Class ::xowf::test_item::Answer_manager->xowiki::bootstrap::modal_dialog Class ::xowf::test_item::Question_manager Class ::xowf::test_item::Question_manager (public) Class ::xowf::test_item::Question_manager->xowiki::bootstrap::modal_dialog xowf::test_item::Answer_manager instproc grading_dialog_setup xowf::test_item::Answer_manager instproc grading_dialog_setup (public) xowf::test_item::Answer_manager instproc grading_dialog_setup->xowiki::bootstrap::modal_dialog xowf::test_item::Question_manager instproc exam_configuration_popup xowf::test_item::Question_manager instproc exam_configuration_popup (public) xowf::test_item::Question_manager instproc exam_configuration_popup->xowiki::bootstrap::modal_dialog security::csp::require security::csp::require (public) xowiki::bootstrap::modal_dialog->security::csp::require

Testcases:
No testcase defined.

xowiki::bootstrap::modal_dialog_popup_button (public)

 xowiki::bootstrap::modal_dialog_popup_button -target target \
    -label label [ -title title ] [ -CSSclass CSSclass ]

Generic modal dialog wrapper.

Switches:
-target
(required)
ID of the target modal dialog
-label
(required)
HTML markup for the modal popup label (can contain tags)
-title
(optional)
title for the anchor (help popup), plain text
-CSSclass
(optional)
Returns:
HTML markup

Partial Call Graph (max 5 caller/called nodes):
%3 Class ::xowf::test_item::Question_manager Class ::xowf::test_item::Question_manager (public) xowiki::bootstrap::modal_dialog_popup_button xowiki::bootstrap::modal_dialog_popup_button Class ::xowf::test_item::Question_manager->xowiki::bootstrap::modal_dialog_popup_button xowf::test_item::Question_manager instproc exam_configuration_popup xowf::test_item::Question_manager instproc exam_configuration_popup (public) xowf::test_item::Question_manager instproc exam_configuration_popup->xowiki::bootstrap::modal_dialog_popup_button

Testcases:
No testcase defined.
[ show source ]