// (C) 2025-2026 GoodData Corporation
import { eventGuard } from "./util.js";
/**
 * Creates a new ShowWidgetAsTableSet event.
 *
 * @param ctx - dashboard context
 * @param ref - reference to the widget
 * @param showAsTable - whether to show as table
 * @param correlationId - optional correlation ID
 * @beta
 */
export function showWidgetAsTableSet(ctx, ref, showAsTable, correlationId) {
    return {
        type: "GDC.DASH/EVT.SHOW_WIDGET_AS_TABLE.SET",
        ctx,
        correlationId,
        payload: {
            ref,
            showAsTable,
        },
    };
}
/**
 * Tests whether the provided object is an instance of {@link IShowWidgetAsTableSet}.
 *
 * @param obj - object to test
 * @beta
 */
export const isShowWidgetAsTableSet = eventGuard("GDC.DASH/EVT.SHOW_WIDGET_AS_TABLE.SET");
