Giter Site home page Giter Site logo

initbase / vue-daily-schedule Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 8.0 3.04 MB

๐Ÿ“… VueJS component for scheduler

Home Page: https://vue-daily-schedule.vercel.app/

License: MIT License

JavaScript 9.59% HTML 2.99% Vue 80.69% CSS 6.73%
vue schedule daily weekly nuxt week-schedule

vue-daily-schedule's Introduction

vue daily scheduler

VEDR

Vue daily scheduler is a custom Vue2 component to manage repeated schedule. It's a straightforward scheduler component you can use.

GitHub forks GitHub stars GitHub license GitHub issues

Demo

Demo here

NPMJS

Install

Node

npm install vue-daily-scheduler

# or yarn

yarn add vue-daily-scheduler

Browser

<link href="https://unpkg.com/vue-daily-scheduler@latest/dist/vue-schedule.min.css" ref="stylesheet" />
<script src="https://unpkg.com/vue-daily-scheduler@latest/dist/vue-schedule.min.js"></script>

then, use inside a component

import 'vue-daily-scheduler/dist/vue-schedule.min.css'
import VueSchedule from 'vue-daily-scheduler'
export default {
    components: {
        VueSchedule
    },
    data () {
        return {
            schedule: {
                0: [],
                1: [],
                2: [],
                3: [],
                4: [],
                5: [],
                6: []
            }
        }
    }
}

use it inside vue template

<template>
    <div>
        <VueSchedule v-model="schedule" />
    </div>
</template>

Props

Props Desc Type Default
steps The interval in minutes Number 60
dayTable Array of day names for changing order or i18n Array ['So','Mo','Tu','We','Th','Fr','Sa']
timeArray This props is optional. Array of time. steps props will be ignored if this props is filled. Array []
strWeek String for i18n support String Week
strTime String for i18n support String Time
strDay String for i18n support String Day
disableWeekSelect Disable the whole week selection Boolean false
disableDaySelect Disable the whole day selection Boolean false
bg Block scheduler background color String #223642
bgHover Block scheduler background color when on hover String #84dafc7a
bgActive Block scheduler background color when active String #84c9fc
textColor Text color inside block scheduler String #000

Example

<template>
    <div>
        <VueSchedule 
            v-model="schedule" 
            bg="red"
            bgHover="gray"
            bgActive="black"
            textColor="#fff"
        />
    </div>
</template>

with timeArray

<template>
    <div>
        <VueSchedule 
            v-model="schedule" 
            :timeArray="['1AM', '3AM', '6AM', '9AM', '11AM', '3PM', '6PM', '9PM', '11PM']"
        />
    </div>
</template>

Future plans

  • โ˜ add disabled time props

Contribution

Feel free if you want to submit pull request or an issue.

Creators
Name
Burhanuddin Ahmed
Oleg Zernov

License

MIT

vue-daily-schedule's People

Contributors

burhanahmeed avatar kazimsayed954 avatar somecatcode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vue-daily-schedule's Issues

Disable specific time to day

It's very useful for me. But how can I disable a particular time slot via the day? I want to disable time slots with different color like
Monday: 11 Am to 1 Pm, ( Red )
Friday: 9 Am to 11 Am ( Yellow )

Could you tell me, can I do with this package??

Change timeArray as you can change dayTable

First of all, great work! It looks and behaves really good.

Is it possible to change the timeArray as well?

At the moment I cannot find a solution to change the time to a custom hour range without changing the internal state of your component. Maybe I just didnt found the prop or do we have to extend your Component to offer this?

Thanks a lot in advance!

Version Mismatch

Hi, I think there is an issue with current versioning.
The latest feature for timeArray doesn't seem to be in the code base at 1.0.9
49c139e

Thanks

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.