@ribajs/core
Version:
Core module of Riba.js
22 lines (17 loc) • 333 B
text/typescript
import { Binder } from "../binder.js";
/**
* Sets a reference to the HTML element into the scope
*/
export class ElementBinder extends Binder<HTMLElement, HTMLElement> {
static key = "element";
publishes = true;
bind() {
this.publish();
}
routine() {
//
}
getValue(el: HTMLElement) {
return el;
}
}