Skip to main content

use_media

Function use_media 

Source
pub fn use_media(queries: &'static [&'static str]) -> Signal<bool>
Expand description

Whether the window matches any of queries (named in crate::ui::responsive::media), updated whenever that changes for as long as the calling component is mounted. False where there is no window (the server render), which draws the desktop.