![Click to show exports only All predicates](/linkedpolitics/swish/pldoc/res/private.png)
basics.pl -- Simple Small HTML components
hidden(+Name, +Value)// is det
- Create a hidden input field with given name and value
form_input(+Label, +Input)// is det
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. nc(+Format, +Value)// is det
nc(+Format, +Value, +Options)// is det
- Numeric cell. The value is formatted using Format and right-aligned in a table cell (td).
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 ana
. Thea
has either CSS classsorted
if the column is sorted orresort
if the column can be sorted on this column. The use of this component demands that the handler processes the parametersort_by
using the field-name as argument. n(+Format, +Value)//
- HTML component to emit a number.
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.