Skip to contents

Registers a new css template for future use. Depending on the given type, the template will then be available to be passed as an argument to a panel or page function of that specific type. Templates are collections of arguments that can be grouped and stored for later usage via the "template" argument of panel and page functions.

Usage

registerTemplate(type, name, ..., breakpoint_system = activeBreakpoints())

Arguments

type

The type of css grid for which the template can be used

name

A unique name for the template. If a template with the same type and name exists, it will simply be overwritten.

...

Collection of valid arguments that can be passed to a panel of the given type (see gridPanel() and FlexPanel() for all options)

breakpoint_system

Optional breakpoint system to use in the template. by default it will simply use the current active system but a built in or custom system can also be passed. You ca find built in breakpoint systems under getOption("imola.breakpoints")

Value

No return value, called for side effects