std:ui:choose:selected-item

This template renders a single item in a similar style to a single item from the std:ui:choose template. This is intended to be used to tell the user which choice was selected.

Obtain a Template object with P.template("std:ui:choose:selected-item"), or use the template:std:ui:choose:selected-item() template function.

View

The keys of the view are identical to the keys of a single option in the options key of the std:ui:choose template.

Example

    P.respond("GET", "/do/example/choose", [
    ], function(E) {
        E.render({
            action: "/do/example/choose?fruit=apples",
            label: "Apples",
            indicator: "primary"
            notes: "All our apples are locally grown."
        }, "std:ui:choose:selected-item");
    });