@progress/kendo-angular-utils
Version:
Kendo UI Angular utils component
30 lines (29 loc) • 1.47 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
import * as i0 from "@angular/core";
/**
* A service that allows changing the current adaptive settings dynamically. Use the public `notify` method to implement this.
*/
export class AdaptiveSettingsService {
/**
* @hidden
*/
changes = new Subject();
/**
* Notifies subscribers that the adaptive settings were changed.
*
* @param adaptiveSettings - (Optional) A new value for the adaptive settings token.
*/
notify(adaptiveSettings) {
this.changes.next(adaptiveSettings);
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AdaptiveSettingsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AdaptiveSettingsService });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AdaptiveSettingsService, decorators: [{
type: Injectable
}] });