nikolasp / react-timetable-events Goto Github PK
View Code? Open in Web Editor NEWTimetable Events React component
Home Page: https://nikolasp.github.io/react-timetable-events/
License: MIT License
Timetable Events React component
Home Page: https://nikolasp.github.io/react-timetable-events/
License: MIT License
import React, { Component } from 'react';
import moment from 'moment';
import Timetable from 'react-timetable-events'
require('../styles/live_table.css');
export default class LiveTable extends Component{
render(){
return(
<div className="livetable_container">
<Timetable
events={this.props.events}
// hoursInterval= {[0,24]}
/>
</div>
);
}
}
LiveTable.defaultProps = {
hoursInterval: [ 2, 24 ],
timeLabel: 'Time',
renderHour(hour) {
return (
<div className="temp"
key={hour}>
{ hour }
</div>
)
}
}
Trying TimeTable.defaultProps, but that is not working too. Can you tell me how to work with this. Great library btw.
Hey guys,
I hope you are doing great!
I was using this library for some personal project and I couldn't find a proper way to extend the Event interface with some extra custom parameters.
Do you have any suggestion on how to do that ?
Thanks,
Hi! may I know how to change the color for each event? I've go through the documentation and I still couldn't find a way. Thanks in advance!
From what I can see it is not possible to resize the dimensions of the table as a whole.
It relies on the viewport of the root. (it is responsive though ๐ )
REQUEST:
Would it be possible to rely on the size of the parent element (or to resize the root somehow)?
So if I put this timetable in a div with a fixed size of 800x800px, the table scales accordingly?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.