diff --git a/packages/rdom-components/src/dropdown.ts b/packages/rdom-components/src/dropdown.ts index 301f2985ef..aa8b468d4c 100644 --- a/packages/rdom-components/src/dropdown.ts +++ b/packages/rdom-components/src/dropdown.ts @@ -2,6 +2,7 @@ import type { Fn } from "@thi.ng/api"; import { option, select, type SelectAttribs } from "@thi.ng/hiccup-html/forms"; import { $input } from "@thi.ng/rdom/event"; import { $list } from "@thi.ng/rdom/list"; +import { $replace } from "@thi.ng/rdom/replace"; import type { ISubscribable, ISubscription } from "@thi.ng/rstream"; export interface DropdownOpts { @@ -10,6 +11,23 @@ export interface DropdownOpts { value: Fn; } +/** + * Dropdown `` component with statically defined list of items, but + * reactive updates using provided `sel` subscription. + * + * @remarks + * Only single selections are supported. Each generated `