UNPKG

bs-datatable

Version:

A data table based on Bootstrap 5

20 lines (17 loc) 576 B
import { BSDataTableInput } from "./BSDataTableInput"; import { BSInputOptions } from "../commonTypes/common-types"; export class BSDataTableCheckBox extends BSDataTableInput { constructor(options: BSInputOptions) { options.InputType = 'checkbox' super(options); this.render(); } clone() { var sc = super.clone(); var c = new BSDataTableCheckBox(this.shClone(this.options)); c.element = sc.element; c.children = sc.children; this.addDoubleClickEvent(); return c; } }