sparnatural
Version:
Visual client-side SPARQL query builder and knowledge graph exploration tool
19 lines • 653 B
JavaScript
import { I18n } from "../../../../settings/I18n";
import { HTMLComponent } from "../../../HtmlComponent";
class ActionAnd extends HTMLComponent {
constructor(parentComponent, callBack) {
let widgetHtml = $(`<span class="trait-and-bottom"></span>`);
super("ActionAnd", parentComponent, widgetHtml);
this.btn = $(`<a>${I18n.labels.And}</a>`);
this.widgetHtml = this.widgetHtml.add(this.btn);
this.btn[0].addEventListener("click", () => {
callBack();
});
}
render() {
super.render();
return this;
}
}
export default ActionAnd;
//# sourceMappingURL=ActionAnd.js.map