โ† API Index ยท How to use components

last component #oo-last

This component shows the recently picked (= seen) items and menu levels for quick re-selection. It records every navigation level the shop component displays, keeps the newest first and lists each element only once. The list is stored in the browser and survives reloads.

How components are mounted, how switch values are resolved and how debug output is enabled is described in the use-js-components skill.

<span class="mynav">Zuletzt angeklickt:</span>
<div id="oo-last" data-oo-last-elements="6" data-oo-shop-page="shop.html"></div>

component switches

Switch Default Description
oo-shop-page โ€“ Page hosting the main shop component. Clicks lead to it; if not provided (or set empty), the current page is not left.
oo-last-elements 6 Number of recorded and shown elements.
oo-last-onlyitems false true records and shows only items, no other menu levels.
oo-qpnav true false appends the navigation level to the URL path of the rendered links instead of using a query parameter (needs a rewrite setup).

On small screens the list can be opened as a full screen overlay; a click on an element closes it again.

debug options

Debug scope last (enable with data-oo-debug="true" on the element or debug:last:all+, see the skill):

Term Description
last:all Loading / storing of the list, incoming shop changes, rendering.

Design tips