Skip to main content

picker_options

Function picker_options 

Source
pub fn picker_options(tera: &Tera) -> Vec<PickerOption>
Expand description

Build the picker-option list from the global registry. Stamped into Tera context as picker_options by page_edit_form.

tera is used to render each block’s preview thumbnail. Pass the admin Tera instance — block templates live in the same namespace as the rest of the admin templates.