MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus-components / iframe

Method iframe

preview/src/main.rs:163–172  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

161
162impl Route {
163 pub fn iframe(&self) -> Option<bool> {
164 match self {
165 Route::Home { iframe, .. } => *iframe,
166 Route::Docs { .. } => None,
167 Route::Demos { .. } => None,
168 Route::ComponentDemo { iframe, .. } => *iframe,
169 Route::ComponentBlockDemo { .. } => None,
170 Route::EmailClientDashboard { .. } => None,
171 }
172 }
173
174 pub fn in_iframe() -> Option<bool> {
175 let route: Self = router().current();

Callers 1

in_iframeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected