my-timetable
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

my-timetable

my-timetable

Get Started

Install

<script src="https://raw.githubusercontent.com/youjung-hong/my-timetable/main/dist/main.js"></script>

Initialize

const timetable = new MyTimetable(document.getElementById('root'), [
  {
    id: 1,
    color: '#51FF0D',
    startAt: '2022-01-02T07:15:00',
    endAt: '2022-01-02T07:20:00',
  },
])

Get timelines

timetable.getTimelines()
timetable.getTimeline(1) // find by id

Create/Update timelines

timetable.addTimelines([
  {
    id: 2,
    color: '#FF0DCA',
    startAt: '2022-06-20T18:10:00',
    endAt: '2022-06-20T18:55:00',
  },
])

Delete timelines

timetable.removeTimelines([1])

Links

Package Sidebar

Install

npm i my-timetable

Weekly Downloads

3

Version

0.0.4

License

MIT

Unpacked Size

6.62 MB

Total Files

74

Last publish

Collaborators

  • youjung.hong