survey-core
Version:
survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.
22 lines (21 loc) • 1.12 kB
TypeScript
import { ItemValue } from "../itemvalue";
import { QuestionSelectBase } from "../question_baseselect";
import { DragDropCore } from "./core";
export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
private imagepickerControlsNode;
protected get draggedElementType(): string;
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement, event: PointerEvent): HTMLElement;
onShortcutCreated: (node: HTMLElement) => void;
private createImagePickerShortcut;
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
private getChoices;
protected doDragOver: () => any;
protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
protected doBanDropHere: () => any;
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
protected afterDragOver(dropTargetNode: HTMLElement): void;
protected doDrop(): any;
clear(): void;
private updateVisibleChoices;
}