pub trait SettingsCtxExt {
// Required methods
fn editor_search(&self) -> ContextVar<Txt>;
fn editor_selected_category(&self) -> ContextVar<CategoryId>;
fn editor_state(&self) -> ReadOnlyContextVar<Option<SettingsEditorState>>;
fn editor_setting(&self) -> ReadOnlyContextVar<Option<Setting>>;
}
Expand description
Extends SETTINGS
to provide contextual information in an editor.
Required Methods§
Sourcefn editor_search(&self) -> ContextVar<Txt>
fn editor_search(&self) -> ContextVar<Txt>
Gets a read-write context var that tracks the search text.
Sourcefn editor_selected_category(&self) -> ContextVar<CategoryId>
fn editor_selected_category(&self) -> ContextVar<CategoryId>
Gets a read-write context var that tracks the selected category.
Sourcefn editor_state(&self) -> ReadOnlyContextVar<Option<SettingsEditorState>>
fn editor_state(&self) -> ReadOnlyContextVar<Option<SettingsEditorState>>
Gets a read-only context var that tracks the current editor data state.
Sourcefn editor_setting(&self) -> ReadOnlyContextVar<Option<Setting>>
fn editor_setting(&self) -> ReadOnlyContextVar<Option<Setting>>
Gets a read-only context var that tracks the Setting
entry the widget is inside, or will be.