UNPKG

pxt-core

Version:

Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors

20 lines (19 loc) 732 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 { private shouldSort_; protected addLabel_: boolean; constructor(text: string, options: FieldImagesOptions, validator?: Function); /** * Create a dropdown menu under the text. * @private */ showEditor_(e?: Event): void; protected onHideCallback(): void; protected createTextNode_(text: string): HTMLSpanElement; }