Sha256: 8770bf5f41e1689f3214fb111743211b65a1b8461464db0412acc4be5f8713f6
Contents?: true
Size: 832 Bytes
Versions: 4
Compression:
Stored size: 832 Bytes
Contents
import LocalTime from "./local-time" import * as bootstrap from "bootstrap"; window.bootstrap = bootstrap; export function initializeComponents() { $(".select-2").select2({ theme: "bootstrap-5", }); flatpickr("[data-behaviour='date-only']", { dateFormat: "d-m-Y", }); flatpickr("[data-behaviour='date-time']", { enableTime: true, }); flatpickr("[data-behaviour='filter'][data-filter-type='date']", { mode: "range", }); var el = document.getElementsByClassName("columns-list"); if (el[0]) { Sortable.create(el[0], { handle: ".dragger", animation: 150, }); } var headerElemHeight = $(".page-top-bar").height() + 64; var calculatedHeight = "calc(100vh - " + headerElemHeight + "px" + ")"; $(".table-wrapper").css("maxHeight", calculatedHeight); LocalTime.start(); }
Version data entries
4 entries across 4 versions & 1 rubygems