NbMediaBreakpointsService

Manages media breakpoints

Provides access to available media breakpoints to convert window width to a configured breakpoint, e.g. 200px - xs breakpoint

Methods

NameDescription
getBreakpoints()
returns:NbMediaBreakpoint[]

Returns a list of configured breakpoints for the theme

getBreakpointsMap()
returns:{[breakpoint: string]: number}

Returns a map of configured breakpoints for the theme

getByName()
parameters: name: string
returns:NbMediaBreakpoint

Returns a configured breakpoint by name

getByWidth()
parameters: width: number
returns:NbMediaBreakpoint

Returns a configured breakpoint by width

ThemeService
Previous page
JSThemesRegistry
Next page

Need some help or found an issue?

Ask on Stack Overflow with tag `nebular` or post an issue on GitHub.