API Docs for: 0.0.1
Show:

Component Class

Defined in: lib/component.jsx:3
Module: component.jsx

React component that views documents using Google Doc Viewer.

Copyright (c) 2016 ItsAsbreuk - http://itsasbreuk.nl
New BSD License - http://choosealicense.com/licenses/bsd-3-clause/

Methods

fullScreen

()

Defined in lib/component.jsx:70

Available since 0.0.1

Will show the content into the full screen. Only if props.allowFullScreen===true.

handleSrcLoad

()

Defined in lib/component.jsx:96

Available since 16.0.5

Hides the "load-message" as specified by this.props.loadingMsg

render

()

Defined in lib/component.jsx:110

Available since 15.0.0

React render-method --> renderes the Component.

Returns:

ReactComponent

Properties

allowFullScreen

Boolean

Defined in lib/component.jsx:168

Available since 15.0.0

Allowed to be displayed into full screen mode, by calling fullScreen()

className

String

Defined in lib/component.jsx:177

Available since 15.0.0

Any class to be set on the main component.

loadingMsg

String

Defined in lib/component.jsx:186

Available since 16.0.5

The message that shows while the document gets loaded

Default: "loading..."

scrolling

String | Boolean

Defined in lib/component.jsx:196

Available since 15.0.0

Whether the browser should provide a scroll bar when needed. Either auto, yes or no

Default: "auto"

showLoadingMsg

Boolean

Defined in lib/component.jsx:207

Available since 16.0.5

Whether to show a message (this.props.loadingMsg) during document load

Default: false

src

String

Defined in lib/component.jsx:217

Available since 15.0.0

The url of the document to be viewed. May be absolute or relative.