Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
ChannelComboBoxProps
Props for the host channel and field selector.
Import
import type { ChannelComboBoxProps } from "@dartwic/interface-sdk/ui";Declaration
export interface ChannelComboBoxProps extends HostComponentProps {
/** Initial `|channel|` or `|channel|:field` selection. */
initialValue?: string;
/** Controlled selection override. */
overrideValue?: string;
/** Called with the selected channel value path. */
onSelect?: (channelValuePath: string) => void;
/** Limits fields to readable or writable channel fields. */
mode?: "read" | "write";
/** Shows the field selector beside the channel selector. */
showFieldSelector?: boolean;
/** Empty-selection placeholder. */
placeholder?: string;
/** Classes applied to the channel selector. */
channelComboboxClassName?: string;
/** Classes applied to the field selector. */
fieldComboboxClassName?: string;
}Members
| Name | Type | Requirement | Description |
|---|---|---|---|
initialValue | string | Optional | Initial |channel| or |channel|:field selection. |
overrideValue | string | Optional | Controlled selection override. |
onSelect | (channelValuePath: string) => void | Optional | Called with the selected channel value path. |
mode | "read" | "write" | Optional | Limits fields to readable or writable channel fields. |
showFieldSelector | boolean | Optional | Shows the field selector beside the channel selector. |
placeholder | string | Optional | Empty-selection placeholder. |
channelComboboxClassName | string | Optional | Classes applied to the channel selector. |
fieldComboboxClassName | string | Optional | Classes applied to the field selector. |