UNPKG

@ribajs/core

Version:

Core module of Riba.js

25 lines (24 loc) 747 B
import { Binder } from "../binder.js"; export declare class ValueBinder extends Binder<any, HTMLElement> { static key: string; publishes: boolean; priority: number; event?: string; getData(el: HTMLElement): { type: string; tagName: string; contenteditable: boolean; isRadio: boolean; isOption: boolean; }; onChange: () => void; bind(el: HTMLElement): void; unbind(el: HTMLUnknownElement): void; routine(el: HTMLElement | HTMLSelectElement, newValue?: number | string | string[]): { name: string; newValue: any; oldValue: string | null; changed: boolean; } | undefined; getValue(el: HTMLElement): string | boolean | string[]; }