Skip to main content

ModUI

class
class ModUI<Anchor extends object = object>

Import

import { ModUI } from '@modular/sdk/mod-ui';

Members16

disposables
(() => void)[]
frameworkMount
Mount | undefined
frameworkOwnedSources
OwnedSourceLedger
frameworkProvider
FrameworkProvider
host
ModUIHost<SemanticFamilyName>
props
Props
self
ReadonlySignal<Anchor>
computed()
<T>(fn: () => T) => ReactiveReadonlySignal<T> | <T>(name: string, fn: () => T) => ReactiveReadonlySignal<T>

Create a computed signal owned by this component. In dev builds, the signal-name-loader automatically injects the property name so devtools can identify it.

dispose()
() => void
effect()
(fn: () => void | (() => void)) => () => void

Create a tracked side effect that auto-disposes on component disposal. The callback is auto-tracked -- any signal read inside it becomes a dependency. When a dependency changes, the callback re-runs. The callback can return a cleanup function that runs before each re-execution and on disposal.

liveQuery()
<TQuery extends QueryBuilder<Context>>(build: SpaceQueryBuilder<TQuery>) => ReadonlySignal<QueryResult<TQuery>[]>
registerDisposable()
(dispose: () => void) => void
render()
() => ReactNode
rows()
<Family extends SemanticFamilyName>(family: Family) => ReadonlySignal<SemanticRow<Family>[]>
signal()
<T>(value: T) => ReactiveSignal<T> | <T>(name: string, value: T) => ReactiveSignal<T>

Create a signal owned by this component. In dev builds, the signal-name-loader automatically injects the property name so devtools can identify it. You can also pass the name explicitly.

tableFor()
<Row extends object, Key extends string | number>(token: CollectionToken<Row, Key>) => Collection<Row, Key>