跳到主要内容

item-by-item-fn

item-by-item-fn(self: none, start: 1, fn, cont)(source)

Display list, enum, or terms items one by one with animation and styling. For more details see utils.item-by-item. Does not autocount subslides, see item-by-item-fn for the version that does.

Parameters

self : dictionary | none    default: none​

The slide context. Pass the self of a callback-style slide, or get the functions with utils.methods(self).

start : int | label | str | dictionary    default: 1​

The starting subslide number or waypoint.

fn : function​

A function that gets (idx, it) and returns the styled item content for the item at the relative index idx (may be negative if it was revealed already)

cont : content​

The content containing the items to display.

Returns: content