mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add definitions for react-bootstrap-date-picker * Add tslint.json * Add required compiler option
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
import * as React from "react"
|
|
import { DropdownMenu } from "react-bootstrap"
|
|
import * as DatePicker from "react-bootstrap-date-picker"
|
|
|
|
const Custom: React.StatelessComponent<{}> = () => {
|
|
return (<div />);
|
|
}
|
|
|
|
class Test extends React.Component<{}, {}> {
|
|
|
|
public render () {
|
|
return (
|
|
<DatePicker autoFocus={ false }
|
|
onChange={ (value: string, c: string) => {} }
|
|
dateFormat="MM/DD/YYYY"
|
|
clearButtonElement="x"
|
|
showClearButton={ true }
|
|
onClear={ () => {} }
|
|
previousButtonElement="<"
|
|
nextButtonElement=">"
|
|
cellPadding="2px"
|
|
dayLabels={ ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] }
|
|
monthLabels={ ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }
|
|
calendarPlacement="top"
|
|
weekStartsOnMonday={ true }
|
|
showTodayButton={ true }
|
|
todayButtonLabel="Today"
|
|
customControl={ Custom } />
|
|
)
|
|
}
|
|
|
|
}
|