var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import { Widget, WidgetGroup } from '@easyquery/core';
var JQueryColumnsPanelWidget = /** @class */ (function (_super) {
    __extends(JQueryColumnsPanelWidget, _super);
    function JQueryColumnsPanelWidget(slot) {
        var _this = _super.call(this, slot) || this;
        _this.jqueryWrapper = jQuery(slot);
        _this.widgetType = "columnsPanel";
        _this.group = WidgetGroup.Query;
        return _this;
    }
    JQueryColumnsPanelWidget.prototype.init = function (context, options) {
        _super.prototype.init.call(this, context, options);
        this.jqueryWrapper.ColumnsPanel(options);
        this.jqueryWrapper.ColumnsPanel("setQuery", this.context.getQuery());
    };
    JQueryColumnsPanelWidget.prototype.refreshCore = function () {
        this.jqueryWrapper.ColumnsPanel("refresh");
    };
    return JQueryColumnsPanelWidget;
}(Widget));
export { JQueryColumnsPanelWidget };
//# sourceMappingURL=jquery_columns_panel_widget.js.map