UNPKG

@raona/components

Version:

React components used at Raona to work with SPFx

31 lines (30 loc) 1.15 kB
import * as React from 'react'; import { Component } from 'react'; import { WrapperComponentProps } from './steppedForm/WrappedComponents/WrapperComponent'; import { TypedHash } from '@raona/sp/dist/entities/TypedHash'; import { SPAbstractService } from '@raona/sp/dist/services/SPAbstractService'; export interface SPUniqueInputProps extends WrapperComponentProps { listName: string; filterField: string; defaultValue?: TypedHash<any> | string; onChange?(inputCheked: TypedHash<any>): void; filterAction?: string; placeholder?: string; delayms?: number; existingItemMessage?: string; notExistingItemMessage?: string; existingItemClassName?: string; notExistingItemClassName?: string; isCustomMessage?: boolean; } export interface SPUniqueInputState { itemFound: boolean; item: TypedHash<any>; service: SPAbstractService; } export declare class SPUniqueInput extends Component<SPUniqueInputProps, SPUniqueInputState> { constructor(props: any); componentDidMount(): void; private onInputChange; render(): React.ReactElement<SPUniqueInputProps>; }