0.1.4 • Published 2 years ago

@fabnumdef/frise v0.1.4

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
2 years ago

Frise

Another gantt timeline

NPM npm

🚧 This library is still on heavy work in progress 🚧

Features

  • ⌛ Custom timeline duration and unit
  • 🧭 Custom timeline navigation
  • 📖 Custom UI with transparent slot API and exposed events
  • 💥 Event collision management
  • ✨ Vertical drag and drop

Installation

NPM:

npm install --save @fabnumdef/frise

Yarn:

yarn add @fabnumdef/frise

Pnpm:

pnpm add @fabnumdef/frise

Usage

Vue2 SFC:

<template>
    <Frise :data="data" @drop-item="updateRows" @update-date-interval="updateDateInterval" />
</template>

<script>
import Frise from '@fabnumdef/frise';

export default {
    components: {
        Frise
    },
    
    data: () => ({
        data: [
            { id: 1, header: { label: 'My First Row' }, blocks: [{ id: 1, start: Date, end: Date }] },
            { id: 2, header: { label: 'My Second Row' }, blocks: [{ id: 2, start: Date, end: Date }] }
        ],
    }),
    
    methods: {
        updateRows({ blockId, initialRowId, newRowId }) {
            /** Your logic to update rows on bar drop **/
        },
    }
}    
</script>

Documentation

@todo add link

Roadmap

  • 🍚 Default basic components
  • 🚀 Fully featured drag and drop
0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1-f

3 years ago

0.0.1-e

3 years ago

0.0.1-d

3 years ago

0.0.1-c

3 years ago

0.0.1-b

3 years ago

0.0.1

3 years ago