Skip to main content

DetailOptions

Type Alias DetailOptions 

Source
pub type DetailOptions<'a> = ListOptions<'a>;
Expand description

Detail options use the same composition, language and data inputs as lists; the list-only layout, page and total are ignored.

Aliased Type§

pub struct DetailOptions<'a> {
    pub files: Map<String, Value>,
    pub loader: Option<&'a dyn FileLoader>,
    pub basepath: String,
    pub language: String,
    pub data: Value,
    pub page: Value,
    pub total: Value,
    pub layout: Value,
}

Fields§

§files: Map<String, Value>

Parsed documents available to composition.

§loader: Option<&'a dyn FileLoader>

Optional explicit composition loader.

§basepath: String

Base directory for relative document references.

§language: String

Content language.

§data: Value

List-level data used by column visibility expressions: null or an object.

§page: Value

Current page: null for none, otherwise an integer from 1 to 9007199254740991.

§total: Value

Total item count: null for none, otherwise an integer from 0 to 9007199254740991; no total is derived from display rows.

§layout: Value

Output layout: null (table), table or card.