All predicatesShow sourcebasics.pl -- Simple Small HTML components

Source hidden(+Name, +Value)// is det
Create a hidden input field with given name and value
Source form_input(+Label, +Input)// is det
Source form_submit(+Label)// is det
Building blocks for HTML forms. The form itself is a two-column table of class form with labels at the left and inputs at the right. These rules create rows for input and submit.
Source nc(+Format, +Value)// is det
Source nc(+Format, +Value, +Options)// is det
Numeric cell. The value is formatted using Format and right-aligned in a table cell (td).
Arguments:
Format- is a (numeric) format as described by format/2 or the constant human. Human formatting applies to integers and prints then in abreviated (K,M,T) form, e.g., 4.5M for 4.5 million.
Options- is passed as attributed to the td element. Default alignment is right.
Source odd_even_row(+Row, -Next, :Content)//
Create odd/even alternating table rows from a DCG.
 sort_th(+Field, +ByNow, :Label)[private]
Provide a column-header for a table that can be resorted. This call creates a th element holding an a. The a has either CSS class sorted if the column is sorted or resort if the column can be sorted on this column. The use of this component demands that the handler processes the parameter sort_by using the field-name as argument.
Arguments:
Field- is the field-name that describes the sort on this column.
ByNow- is the field on which the table is currently sorted.
Label- is the label of the a element
Source n(+Format, +Value)//
HTML component to emit a number.
See also
- nc//2 for details.
Source insert_html_file(+Specification)//
Insert the content of an HTML file into the current document. Only the content of the body element is included.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

Source nc(Arg1, Arg2, Arg3, Arg4, Arg5)
Source sort_th(Arg1, Arg2, Arg3, Arg4, Arg5)
Source form_submit(Arg1, Arg2, Arg3)