Giter Club home page Giter Club logo

vue-webdatarocks's People

Contributors

iansadovy avatar marviem avatar uaman avatar vo-fomin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vue-webdatarocks's Issues

Undefined Length

Cannot read properties of undefined (reading 'length')
at memoizedBinarySearch (file:///D:/laravel%20projects/jobCard/node_modules/vite/dist/node/chunks/dep-5e7f419b.js:10022:25)
at traceSegmentInternal (file:///D:/laravel%20projects/jobCard/node_modules/vite/dist/node/chunks/dep-5e7f419b.js:10129:17)
at originalPositionFor$1 (file:///D:/laravel%20projects/jobCard/node_modules/vite/dist/node/chunks/dep-5e7f419b.js:10115:23)
at formatError (file:///D:/laravel%20projects/jobCard/node_modules/vite/dist/node/chunks/dep-5e7f419b.js:41297:54)
at TransformContext.error (file:///D:/laravel%20projects/jobCard/node_modules/vite/dist/node/chunks/dep-5e7f419b.js:41231:19)
at Object.transform (file:///D:/laravel%20projects/jobCard/node_modules/vite/dist/node/chunks/dep-5e7f419b.js:41509:25)
at async loadAndTransform (file:///D:/laravel%20projects/jobCard/node_modules/vite/dist/node/chunks/dep-5e7f

Updated the Pivot.vue file for vue3 composition API with script setup and TS

If you are interested I have update the Pivot.vue for composition api .

<template>
    <div ref="pivot">Pivot</div>
</template>

<script setup lang="ts">
import { ref } from '@vue/reactivity';
import { onMounted } from 'vue';
import WebDataRocks from 'webdatarocks';
import type { Report, CellBuilder, CellData } from 'webdatarocks';

// in the future an interface for defineProps will be able to be imported but that is not compatible at the moment.
const props = defineProps<{
    // params
    toolbar?: boolean;
    width?: string | number;
    height?: string | number;
    report?: Report | string;
    global?: Report;
    customizeCell?: (cell: CellBuilder, data: CellData) => void;
    // events
    aftergriddraw?: (param: object) => void;
    beforegriddraw?: (param: object) => void;
    beforetoolbarcreated?: (toolbar: any) => void;
    cellclick?: (cell: CellData) => void;
    celldoubleclick?: (cell: CellData) => void;
    datachanged?: (param: object) => void;
    dataerror?: (param: object) => void;
    datafilecancelled?: () => void;
    dataloaded?: () => void;
    exportcomplete?: () => void;
    exportstart?: () => void;
    fieldslistclose?: () => void;
    fieldslistopen?: () => void;
    filterclose?: () => void;
    filteropen?: () => void;
    loadingdata?: () => void;
    loadinglocalization?: () => void;
    loadingolapstructure?: () => void;
    loadingreportfile?: () => void;
    localizationerror?: () => void;
    localizationloaded?: () => void;
    openingreportfile?: () => void;
    printcomplete?: () => void;
    printstart?: () => void;
    querycomplete?: () => void;
    queryerror?: () => void;
    ready?: () => void;
    reportchange?: () => void;
    reportcomplete?: () => void;
    reportfileloaded?: () => void;
    reportfilecancelled?: () => void;
    reportfileerror?: () => void;
    runningquery?: () => void;
    update?: () => void;
}>();

const pivot = ref<HTMLElement | null>(null);

onMounted(() => {
    if (pivot.value) {
        new WebDataRocks({ ...props, container: pivot.value });
    }
});
</script>

<style>
@import 'webdatarocks/webdatarocks.min.css';
</style>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.