Active View

To define the first view that the Calendar initially renders, use the defaultActiveView property.

The ActiveView type defines the following possible view options:

  • monthShows the days of the month.
  • yearShows the months of the year.
  • decadeShows the years of the decade.
  • centuryShows the decades of the century.
class App extends React.Component {
    render() {
        return (
            <Calendar defaultActiveView="decade"/>
        )
    }
}
ReactDOM.render(
    <App />,
    document.querySelector('my-app')
)

In this article

Not finding the help you need?