Skip to main content

config-methods

The configuration of the methods.

Parameters

init : function​

The function to initialize the presentation. It should be (self: none, body) => { .. }.

cover : function​

The function to cover content. The default value is utils.method-wrapper(hide) function.

You can configure it with cover: utils.alpha-changing-cover to use a transparent cover effect.

uncover : function​

The function to uncover content. The default value is utils.uncover function.

only : function​

The function to show only the content. The default value is utils.only function.

effect : function​

The function to add effect to the content. The default value is utils.effect.

alternatives-match : function​

The function to match alternatives. The default value is utils.alternatives-match function.

alternatives : function​

The function to show alternatives. The default value is utils.alternatives function.

alternatives-fn : function​

The function to show alternatives with a function. The default value is utils.alternatives-fn function.

alternatives-cases : function​

The function to show alternatives with cases. The default value is utils.alternatives-cases function.

item-by-item : function​

The function to show items one by one. The default value is utils.item-by-item function.

alert : function​

The function to alert the content. The default value is utils.method-wrapper(text.with(weight: "bold")) function.

convert-label-to-short-heading : function​

The function to convert label to short heading. It is useful for the short heading for heading with label. It will be used in function with short-heading.

The default value is utils.titlecase(lbl.replace(regex("^[^:]*:"), "").replace("_", " ").replace("-", " ")).

It means that some headings with labels like section:my-section will be converted to My Section.

Returns: dictionary