UNPKG

pxt-core

Version:

Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors

21 lines (20 loc) 752 B
/// <reference path="../../pxtlib.d.ts" /> import { FieldImageDropdown, FieldImageDropdownOptions } from "./field_imagedropdown"; import { FieldCustom } from "./field_utils"; export interface FieldImagesOptions extends FieldImageDropdownOptions { sort?: boolean; addLabel?: string; } export declare class FieldImages extends FieldImageDropdown implements FieldCustom { isFieldCustom_: boolean; private shouldSort_; protected addLabel_: boolean; constructor(text: string, options: FieldImagesOptions, validator?: Function); /** * Create a dropdown menu under the text. * @private */ showEditor_(): void; protected onHideCallback(): void; protected createTextNode_(text: string): HTMLSpanElement; }