UNPKG

@iobroker/adapter-react

Version:

React classes to develop admin interfaces for ioBroker with react.

65 lines (64 loc) 2.02 kB
export default IconPicker; export type IconPickerProps = { /** * The value. */ value?: string; /** * The label. */ label?: string; /** * Set to true to disable the icon picker. */ disabled?: boolean; /** * The icon change callback. */ onChange: (icon: string) => void; /** * The socket connection. */ socket: import('../Connection').default; /** * The image prefix (default: './files/') */ imagePrefix?: string; /** * Additional styling for this component. */ style?: React.CSSProperties; /** * The CSS class name. */ className?: string; }; /** * @typedef {object} IconPickerProps * @property {string} [value] The value. * @property {string} [label] The label. * @property {boolean} [disabled] Set to true to disable the icon picker. * @property {(icon: string) => void} onChange The icon change callback. * @property {import('../Connection').default} socket The socket connection. * @property {string} [imagePrefix] The image prefix (default: './files/') * @property {React.CSSProperties} [style] Additional styling for this component. * @property {string} [className] The CSS class name. * * @extends {React.Component<IconPickerProps>} */ declare function IconPicker(props: any): JSX.Element; declare namespace IconPicker { namespace propTypes { const previewClassName: PropTypes.Requireable<string>; const icon: PropTypes.Requireable<object>; const customClasses: PropTypes.Requireable<object>; const label: PropTypes.Requireable<string>; const value: PropTypes.Requireable<any>; const disabled: PropTypes.Requireable<boolean>; const onChange: PropTypes.Validator<(...args: any[]) => any>; const icons: PropTypes.Requireable<any[]>; const onlyRooms: PropTypes.Requireable<boolean>; const onlyDevices: PropTypes.Requireable<boolean>; } } import PropTypes from "prop-types";