【发布时间】:2021-04-26 20:28:30
【问题描述】:
我有一个自调用 jQuery 函数,它为表列添加了重新调整大小的功能 (来源:https://codepen.io/jasongardner/pen/QNOXym)
从 AfterViewInit 生命周期调用
ngAfterViewInit(): void {
$(function () {
var startX,startWidth,$handle,$table,pressed = false;
//rest of functionality
}
由于我需要在整个应用程序中使用它,有没有办法为 Angular 项目创建 colRisezable(https://github.com/alvaro-prieto/colResizable) 插件类型的可重用组件?
【问题讨论】:
标签: html jquery css angular jquery-plugins