Search results

Week Number in React Calendar component

14 Apr 2021 / 1 minute to read

You can enable the weekNumber in Calendar by using the weekNumber property.

Copied to clipboard
// import the calendarcomponent
import { CalendarComponent} from '@syncfusion/ej2-react-calendars';
import * as React from "react";
import * as ReactDOM from "react-dom";

export default class App extends React.Component<{}, {}> {
    public render() {
        return <CalendarComponent id="calendar" weekNumber={true} />
ReactDOM.render(<App />, document.getElementById('element'));