@runic-artifex/angular
CollectionViewportre-exportexport { CollectionViewport } from '@runic-artifex/views'Re-exported from
CollectionViewport.CollectionViewportOptionsre-exportexport { CollectionViewportOptions } from '@runic-artifex/views'Re-exported from
CollectionViewportOptions.CommandHandleinterfaceinjectCollectionViewportfunctionfunction injectCollectionViewport(element: Signal<ElementRef<HTMLElement> | HTMLElement | null | undefined>, options: () => CollectionViewportOptions, { injector: provided }?: InjectCollectionViewportOptions): Signal<CollectionViewport>;Follows a fixed-row-height scroll container and returns the rows to request from .NET as a signal. Pass the container, for example
viewChild<ElementRef<HTMLElement>>("scroller"), and the list options as a signal or function, then sendstartandsizeto the ViewModel from an effect.InjectCollectionViewportOptionsinterfaceinjectCommandfunctionfunction injectCommand<TArgs extends readonly unknown[], TReturn>(command: (...args: TArgs) => TReturn, options?: InjectCommandOptions): CommandHandle<TArgs, Awaited<TReturn>>;Tracks a command's pending state and failure as signals for the lifetime of the injection context. The command may read signals, such as a client:
readonly increment = injectCommand(() => this.counter.client()?.increment()); // <button [disabled]="!counter.client() || increment.pending()" (click)="increment.run()">InjectCommandOptionsinterfaceinjectViewfunctionfunction injectView<TClient extends ViewClient>(source: Signal<ViewSource<TClient>> | ViewSource<TClient>, options?: InjectViewOptions<TClient>): ViewHandle<TClient>;Connects a generated View reference for the lifetime of the injection context (normally a component) and exposes its state as signals. Pass a signal, such as a
pageinput, to follow it: a changed reference releases the previous client and connects the new one. A reference is identified by itsconnectfunction, so a signal producing a new{ connect: connectShell }object does not reconnect.InjectViewOptionsinterfaceRunicViewOutletclassHeadless host for a selected logical .NET View. A changed reference remounts its component.
ViewClientre-exportexport { ViewClient } from '@runic-artifex/views'Re-exported from
ViewClient.ViewConnectorre-exportexport { ViewConnector } from '@runic-artifex/views'Re-exported from
ViewConnector.ViewHandleinterfaceViewReferencere-exportexport { ViewReference } from '@runic-artifex/views'Re-exported from
ViewReference.ViewRegistrytype aliastype ViewRegistry<R extends ViewReference> = { readonly [K in R["kind"]]: Type<{ readonly page: InputSignal<Extract<R, { readonly kind: K; }>>; }>; };A build-known map checks each generated reference against its component input.
ViewSourcere-exportexport { ViewSource } from '@runic-artifex/views'Re-exported from
ViewSource.