zng_wgt_settings

Trait 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§