Interface TransferProps<RecordType>

interface TransferProps<RecordType> {
    children?: ((props) => ReactNode);
    className?: string;
    dataSource?: RecordType[];
    disabled?: boolean;
    filterOption?: ((inputValue, item, direction) => boolean);
    footer?: ((props, info?) => ReactNode);
    listStyle?: CSSProperties | ((style) => CSSProperties);
    locale?: Partial<TransferLocale>;
    onChange?: ((targetKeys, direction, moveKeys) => void);
    onScroll?: ((direction, e) => void);
    onSearch?: ((direction, value) => void);
    onSelectChange?: ((sourceSelectedKeys, targetSelectedKeys) => void);
    oneWay?: boolean;
    operationStyle?: CSSProperties;
    operations?: string[];
    pagination?: PaginationType;
    prefixCls?: string;
    render?: TransferRender<RecordType>;
    rootClassName?: string;
    rowKey?: ((record) => string);
    selectAllLabels?: SelectAllLabel[];
    selectedKeys?: string[];
    selectionsIcon?: ReactNode;
    showSearch?: boolean;
    showSelectAll?: boolean;
    status?: "" | "error" | "warning";
    style?: CSSProperties;
    targetKeys?: string[];
    titles?: ReactNode[];
}

Type Parameters

  • RecordType = any

Properties

children?: ((props) => ReactNode)

Type declaration

    • (props): ReactNode
    • Parameters

      Returns ReactNode

className?: string
dataSource?: RecordType[]
disabled?: boolean
filterOption?: ((inputValue, item, direction) => boolean)

Type declaration

    • (inputValue, item, direction): boolean
    • Parameters

      • inputValue: string
      • item: RecordType
      • direction: TransferDirection

      Returns boolean

footer?: ((props, info?) => ReactNode)

Type declaration

    • (props, info?): ReactNode
    • Parameters

      • props: TransferListProps<RecordType>
      • Optional info: {
            direction: TransferDirection;
        }
        • direction: TransferDirection

      Returns ReactNode

listStyle?: CSSProperties | ((style) => CSSProperties)

Type declaration

    • (style): CSSProperties
    • Parameters

      • style: ListStyle

      Returns CSSProperties

locale?: Partial<TransferLocale>
onChange?: ((targetKeys, direction, moveKeys) => void)

Type declaration

    • (targetKeys, direction, moveKeys): void
    • Parameters

      • targetKeys: string[]
      • direction: TransferDirection
      • moveKeys: string[]

      Returns void

onScroll?: ((direction, e) => void)

Type declaration

    • (direction, e): void
    • Parameters

      Returns void

onSearch?: ((direction, value) => void)

Type declaration

    • (direction, value): void
    • Parameters

      • direction: TransferDirection
      • value: string

      Returns void

onSelectChange?: ((sourceSelectedKeys, targetSelectedKeys) => void)

Type declaration

    • (sourceSelectedKeys, targetSelectedKeys): void
    • Parameters

      • sourceSelectedKeys: string[]
      • targetSelectedKeys: string[]

      Returns void

oneWay?: boolean
operationStyle?: CSSProperties
operations?: string[]
pagination?: PaginationType
prefixCls?: string
render?: TransferRender<RecordType>
rootClassName?: string
rowKey?: ((record) => string)

Type declaration

    • (record): string
    • Parameters

      Returns string

selectAllLabels?: SelectAllLabel[]
selectedKeys?: string[]
selectionsIcon?: ReactNode
showSearch?: boolean
showSelectAll?: boolean
status?: "" | "error" | "warning"
style?: CSSProperties
targetKeys?: string[]
titles?: ReactNode[]

Generated using TypeDoc