Improve this doc View source

pfBootstrapDatepicker
directive in module patternfly.datepicker

Description

A wrapper for the Angular UI datepicker.

Usage

as attribute
<pf-bootstrap-datepicker pf-bootstrap-datepicker
     date="{date}"
     format="{string}"
     on-date-change="{function}"
     is-open="{boolean}"
     popup-placement="{string}"
     date-options="{object}">
   ...
</pf-bootstrap-datepicker>

Parameters

ParamTypeDetails
datedate

Must be a Javascript Date - to be displayed in the input. Can be left empty.

formatstring

Optional date format for displayed dates ('MM/dd/yyyy' by default).

on-date-changefunction

Optional user defined function which is called when the date is changed by the picker.

isOpenboolean

Optional boolean for determining whether or not to have the datepicker default to open (false by default).

popupPlacementstring

Optional configuration string used to position the popup datepicker relative to the input element. See Angular UI Datepicker Popup.

dateOptionsobject

Optional uib-datepicker configuration object. See Angular UI Datepicker.

Example

Source





Demo