Create an HTML fragment showing a DCT object

dct_object_to_html(
dctObject,
collapseButtons = TRUE,
urlPrefix = "#",
sortDecreasing = FALSE
)

## Arguments

dctObject

The DCT object

The level of the heading in the Markdown output that is produces.

Whether to create hyperlinks to UCIDs.

collapseButtons

Whether to include buttons to show/hide the definition and instructions.

urlPrefix

The prefix to insert before the URL in the produced hyperlink. The default, "#", results in a link to an anchor (an HTML a element) on the current page.

sortDecreasing

Whether to sort the constructs in decreasing order (TRUE), in increasing order (FALSE), or not at all (NULL).

## Value

A character vector.

## Examples

exampleDCT <-
psyverse::dct_object(
prefix = "exampleConstruct",
label = "An example construct",
definition = "The definition goes here",
measure_dev = "Here you can explain how to measure the construct"
);
dct_object_to_html(exampleDCT);
#> Error in dct_object_to_html(exampleDCT): could not find function "dct_object_to_html"