pub fn js_toggle_config(&self, force: Option<bool>) -> js_sys::Promise {
        let root = self.root.clone();
        promisify_ignore_view_delete(async move {
            let force = force.map(SettingsUpdate::Update);
            let task = root
                .borrow()
                .as_ref()
                .into_jserror()?
                .promise_message(|x| Msg::ToggleSettingsInit(force, Some(x)));

            task.await.map_err(|_| JsValue::from("Cancelled"))?
        })
    }
/// Toggle (or force) the config panel open/closed.
///
/// # Arguments
/// - `force` Force the state of the panel open or closed, or `None` to
///   toggle.
Toggle (or force) the config panel open/closed.
Toggle ( or force ) the config panel open / closed .
pub fn js_toggle_config(&self, force: Option<bool>) -> js_sys::Promise {
        let root = self.root.clone();
        promisify_ignore_view_delete(async move {
            let force = force.map(SettingsUpdate::Update);
            let task = root
                .borrow()
                .as_ref()
                .into_jserror()?
                .promise_message(|x| Msg::ToggleSettingsInit(force, Some(x)));
            task.await.map_err(|_| JsValue::from("Cancelled"))?
        })
    }
pub fn js_toggle_config ( & self , force : Option < bool > ) -> js_sys :: Promise { let root = self . root . clone ( ) ; promisify_ignore_view_delete ( async move { let force = force . map ( SettingsUpdate :: Update ) ; let task = root . borrow ( ) . as_ref ( ) . into_jserror ( ) ? . promise_message ( | x | Msg :: ToggleSettingsInit ( force , Some ( x ) ) ) ; task . await . map_err ( | _ | JsValue :: from ( " " ) ) ? } ) }
Toggle (or force) the config panel open/closed.
Toggle ( or force ) the config panel open / closed .
&self
force
Option<bool>
&self
force
Option<bool>
Force the state of the panel open or closed, or `None` to
toggle.
Force the state of the panel open or closed or ` None ` to toggle .