UNPKG

geostyler

Version:
31 lines (30 loc) 1.19 kB
import { default as React } from 'react'; import { IconLibrary } from '../../IconSelector/IconSelector'; import { IconSymbolizer } from 'geostyler-style'; export interface ImageFieldProps { /** The tooltip label for the iconLibraries button. */ tooltipLabel?: string; /** The tooltip label for the sprite button. */ spriteTooltipLabel?: string; /** The placeholder text when no value was provided yet. */ placeholder?: string; /** True, if the iconLibrary should not be opened in a window. False otherwise. */ windowless?: boolean; /** Disables the sprite input fields */ disableSprite?: boolean; /** * The callback when the iconLibraries button was clicked. * This will only be called, when 'windowless' is true. */ onIconLibrariesClick?: () => void; /** The value of the image field. */ value?: IconSymbolizer['image']; /** The callback that is triggered when the value changes. */ onChange?: (image: IconSymbolizer['image']) => void; /** Predefined list of icons to select from. */ iconLibraries?: IconLibrary[]; } /** * ImageField */ export declare const ImageField: React.FC<ImageFieldProps>;