import { DaffSidebarService } from '@daffodil/design/sidebar'
A service that stores the open state and ID of the currently opened sidebar.
A default sidebar ID can be passed to the constructor that will be the initial value of $id
.
abstract class DaffSidebarService {
protected _id$: BehaviorSubject<DaffSidebarRegistration['id']>
protected _open: WritableSignal<boolean> = signal(false)
readonly id$: Observable<DaffSidebarRegistration['id']>
get isOpen(): Signal<boolean>
open(id?: string): void
close(): void
}