Trait zng_wgt_settings::SettingEditorExt

source ·
pub trait SettingEditorExt {
    // Required methods
    fn editor_fn(&self) -> Option<WidgetFn<Setting>>;
    fn editor(&self) -> BoxedUiNode;
}
Expand description

Extends Setting to get custom editor metadata.

Required Methods§

source

fn editor_fn(&self) -> Option<WidgetFn<Setting>>

Custom editor for the setting.

source

fn editor(&self) -> BoxedUiNode

Instantiate editor.

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

Implementations on Foreign Types§

source§

impl SettingEditorExt for Setting

Implementors§