Header menu logo Sutil

Media Type

Helpers for listening and reacting to media changes

Static members

Static member Description

Media.bindMediaQuery (query, view)

Full Usage: Media.bindMediaQuery (query, view)

Parameters:
Returns: SutilElement
query : string
view : bool -> SutilElement
Returns: SutilElement

Media.listenMedia (query, handler)

Full Usage: Media.listenMedia (query, handler)

Parameters:
    query : string
    handler : bool -> unit

Returns: unit -> unit
query : string
handler : bool -> unit
Returns: unit -> unit

Media.media (query, map, app)

Full Usage: Media.media (query, map, app)

Parameters:
Returns: SutilElement
query : string
map : bool -> 'T
app : IObservable<'T> -> SutilElement
Returns: SutilElement

Media.showIfMedia (query, trans, view)

Full Usage: Media.showIfMedia (query, trans, view)

Parameters:
Returns: SutilElement
query : string
trans : TransitionAttribute list
view : SutilElement
Returns: SutilElement

Media.showIfMedia (query, f, trans, view)

Full Usage: Media.showIfMedia (query, f, trans, view)

Parameters:
Returns: SutilElement
query : string
f : bool -> bool
trans : TransitionAttribute list
view : SutilElement
Returns: SutilElement

Type something to start searching.