UNPKG

@funidata/ngx-fudis

Version:

Funidata Design System.

28 lines (27 loc) 1.07 kB
import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout'; import { FudisBreakpointStyleProperty, FudisBreakpointStyleResponsive } from '../../types/breakpoints'; import * as i0 from "@angular/core"; export declare class FudisBreakpointService { /** * Observe breakpoints and when hitting one, save results to Signal. */ constructor(fudisBreakpointObserver: BreakpointObserver); /** * Current screen size/breakpoint with true/false state */ private _currentScreenSize; /** * Readonly value for current screen size and state */ private _screenSize; /** * Get current state of Breakpoints */ getBreakpointState(): BreakpointState | null; /** * Function to apply CSS properties */ setStyleAttributes(element: HTMLElement, property: FudisBreakpointStyleProperty, value: string | FudisBreakpointStyleResponsive[]): void; static ɵfac: i0.ɵɵFactoryDeclaration<FudisBreakpointService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<FudisBreakpointService>; }