import React, { Component, PropTypes } from 'react'; import styles from './styles.scss'; import Button from '/imports/ui/components/button/component'; import { callServer } from '/imports/ui/services/api/index.js' export default class SlideControls extends Component { constructor(props) { super(props); this.state = {sliderValue: 100}; } handleValuesChange(event) { console.log("handleValuesChange()"); console.log(event.target.value); this.setState({ sliderValue: event.target.value, }); } //Change to the next slide nextSlide(){ const currentSlideNum = this.props.currentSlideNum; callServer('publishSwitchToXSlideMessage', currentSlideNum + 1); } //Change to the previous slide previousSlide(){ const currentSlideNum = this.props.currentSlideNum; callServer('publishSwitchToXSlideMessage', currentSlideNum - 1); } //Change to a specific slide (using dropdown menu) skipToSlide(event){ const requestedSlideNum = event.target.value; callServer('publishSwitchToXSlideMessage', requestedSlideNum); } clickHandler(){ console.log("test click handler"); } renderSkipSlideOpts(numberOfSlides){ // Fill drop down menu with all the slides in presentation let optionList = []; for(i = 1; i <= numberOfSlides; i++){ optionList.push( ); } return optionList; } render() { const { currentSlideNum, numberOfSlides, } = this.props; return (
Next slide
Change the presentation to the next slide
Previous slide
Change the presentation to the previous slide
Skip slide
Change the presentation to a specific slide
Fit to width
Display the whole width of the slide
Fit to screen
Display the whole slide
Zoom
Change the zoom level of the presentation