sparnatural
Version:
Visual client-side SPARQL query builder and knowledge graph exploration tool
32 lines (31 loc) • 1.17 kB
TypeScript
import { SelectedVal } from "../SelectedVal";
import { AbstractWidget, WidgetValue } from "./AbstractWidget";
import { AddUserInputBtn } from "../buttons/AddUserInputBtn";
import { InfoBtn } from "../buttons/InfoBtn";
import { HTMLComponent } from "../HtmlComponent";
export declare class NumberWidgetValue implements WidgetValue {
value: {
label: string;
min: number | undefined;
max: number | undefined;
};
key(): string;
constructor(v: NumberWidgetValue["value"]);
}
export interface NumberConfiguration {
min?: string;
max?: string;
}
export declare class NumberWidget extends AbstractWidget {
#private;
static defaultConfiguration: NumberConfiguration;
configuration: NumberConfiguration;
form: JQuery<HTMLElement>;
minInput: JQuery<HTMLElement>;
maxInput: JQuery<HTMLElement>;
infoBtn: InfoBtn;
addValueBtn: AddUserInputBtn;
constructor(parentComponent: HTMLComponent, configuration: NumberConfiguration, startClassVal: SelectedVal, objectPropVal: SelectedVal, endClassVal: SelectedVal);
render(): this;
parseInput(input: NumberWidgetValue["value"]): NumberWidgetValue;
}