Trait zng_wgt_settings::SettingBuilderEditorExt

source ·
pub trait SettingBuilderEditorExt {
    // Required method
    fn editor_fn(&mut self, editor: WidgetFn<Setting>) -> &mut Self;
}
Expand description

Extends SettingBuilder to set custom editor metadata.

Required Methods§

source

fn editor_fn(&mut self, editor: WidgetFn<Setting>) -> &mut Self

Custom editor for the setting.

If an editor is set the VAR_EDITOR service is used to instantiate the editor.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> SettingBuilderEditorExt for SettingBuilder<'a>

source§

fn editor_fn(&mut self, editor: WidgetFn<Setting>) -> &mut Self

Implementors§