Skip to content
Snippets Groups Projects
Select Git revision
  • 18c104bceb96eae8fa64438e6ee9a5bd653db77f
  • master default protected
  • 1.31
  • 4.25.2
  • 4.25.1
  • 4.25.0
  • 4.24.3
  • 4.24.2
  • 4.24.1
  • 4.24.0
  • 4.23.6
  • 4.23.5
  • 4.23.4
  • 4.23.3
  • 4.23.2
  • 4.23.1
  • 4.23.0
  • 4.22.3
  • 4.22.2
  • 4.22.1
  • 4.22.0
  • 4.21.0
  • 4.20.1
23 results

Monster.Constraints.html

Blame
  • columnbar.mjs 7.50 KiB
    /**
     * Copyright 2023 schukai GmbH
     * SPDX-License-Identifier: AGPL-3.0
     */
    
    import { instanceSymbol } from "../../constants.mjs";
    import {
    	assembleMethodSymbol,
    	CustomElement,
    	registerCustomElement,
    } from "../../dom/customelement.mjs";
    import { findTargetElementFromEvent } from "../../dom/events.mjs";
    import { clone } from "../../util/clone.mjs";
    import { ColumnBarStyleSheet } from "./stylesheet/column-bar.mjs";
    import { createPopper } from "@popperjs/core";
    
    export { ColumnBar };
    
    /**
     * @private
     * @type {symbol}
     */
    const settingsButtonElementSymbol = Symbol("settingButtonElement");
    
    /**
     * @private
     * @type {symbol}
     */
    const settingsButtonEventHandlerSymbol = Symbol("settingsButtonEventHandler");
    
    /**
     * @private
     * @type {symbol}
     */
    const settingsLayerElementSymbol = Symbol("settingsLayerElement");
    
    /**
     * @private
     * @type {symbol}
     */
    const dotsContainerElementSymbol = Symbol("dotsContainerElement");
    
    /**
     * @private
     * @type {symbol}
     */
    const popperInstanceSymbol = Symbol("popperInstance");
    
    /**
     * The ColumnBar component is used to show and configure the columns of a datatable.
     *
     * <img src="./images/column-bar.png">
     *
     * You can create this control either by specifying the HTML tag <monster-column-bar />` directly in the HTML or using
     * Javascript via the `document.createElement('monster-column-bar');` method.
     *
     * ```html
     * <monster-column-bar></monster-column-bar>
     * ```
     *
     * Or you can create this CustomControl directly in Javascript:
     *
     * ```js
     * import '@schukai/monster/components/datatable/column-bar.mjs';
     * document.createElement('monster-column-bar');
     * ```
     *
     * The Body should have a class "hidden" to ensure that the styles are applied correctly.
     *
     * ```css