UNPKG

survey-core

Version:

A framework-independent core of the SurveyJS Form Library that works with rendering packages. Use it to integrate dynamic, interactive JSON-based forms and surveys into your app, collect user responses, and send them to your own database.

18 lines (17 loc) 1.19 kB
import { ItemValue } from "../itemvalue"; import { DragDropRankingChoices } from "./ranking-choices"; import { QuestionRankingModel } from "../question_ranking"; export declare class DragDropRankingSelectToRank extends DragDropRankingChoices { protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement; protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue; protected getDropTargetByNode(dropTargetNode: HTMLElement, event: PointerEvent): any; protected isDropTargetValid(dropTarget: ItemValue | string, dropTargetNode?: HTMLElement): boolean; protected afterDragOver(dropTargetNode: HTMLElement): void; doRankBetween(dropTargetNode: HTMLElement, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>, rankFunction: Function): void; private get isDraggedElementRanked(); private get isDropTargetRanked(); private get isDraggedElementUnranked(); private updateChoices; selectToRank: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number) => void; unselectFromRank: (questionModel: QuestionRankingModel, fromIndex: number, toIndex?: number) => void; }