A Simple Component to Show A Repeating Weekly Schedule

A Simple Component to Show A Repeating Weekly Schedule

vue-retimeline A simple component to show timeline of events categorized by resources.

vue-retimeline

A simple component to show timeline of events categorized by resources.

Install

npm install --save vue-retimeline

Use as a plugin -

import Vue from 'vue';
import ResourceTimeline from 'vue-retimeline';

Vue.use(ResourceTimeline); // Adds 'retimeline' component

or directly use as a component

import ResourceTimeline from 'vue-retimeline';

export default {
  components: {
    ResourceTimeline,
    ...
  },
  ...
};

Props -

Prop Description Type Default
resources* Array of resources Array
events* Array of events Array
showEmptyResource Toggle showing of resources with no events Boolean false
showAddBtn Toggle showing add button Boolean false

events expects the following format -

const events = [{
  resourceId: String/Number, // Strictly matches the value of a resource.id
  start: String, // 'HH:mm'
  end: String, // 'HH:mm'
  class: String, // Optional
  title: String, // Optional
}];

resources expects the following format -

const resources = [{
  id: String/Number, // Strictly matches the value of a resource.id
  class: String, // Optional
  title: String, // Optional
}];

Events -

Event Description Payload
addBtnClick Emitted when the + button is clicked Number, day of add button that was clicked
eventClick Emitted when an event is clicked Object, original event object for the clicked event

Development setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Download Details:

Author: arpit9295

Source Code: https://github.com/arpit9295/vue-resource-timeline

vue vuejs javascript

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

8 Popular Websites That Use The Vue.JS Framework

In this article, we are going to list out the most popular websites using Vue JS as their frontend framework. Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.

Vue Native is a framework to build cross platform native mobile apps using JavaScript

Vue Native is a framework to build cross platform native mobile apps using JavaScript. It is a wrapper around the APIs of React Native. So, with Vue Native, you can do everything that you can do with React Native. With Vue Native, you get

How to Make a Simple Vue Custom Select Component

In this article, you’ll learn how to build a Vue custom select component that can be easily be styled using your own CSS. In fact, it’s the same component that we use in production on Qvault, and you can see it in action on the playground.

Creating a Custom Tooltip Component in Vue

There are plenty of libraries out there that will have you up and running with a good tooltip solution in minutes. However, if you are like me, you are sick and tired of giant dependency trees that have the distinct possibility of breaking at any time.

Vue ShortKey plugin for Vue.js

Vue-ShortKey - The ultimate shortcut plugin to improve the UX .Vue-ShortKey - plugin for VueJS 2.x accepts shortcuts globaly and in a single listener.