Search
DateTimePicker.datePartSelect Property
See Also
 






Gets or sets a value indicating whether date part selection is enabled.

Namespace: MindFusion.Common.UI
File: DateTimePicker.js

 Syntax

JavaScript  Copy Code

get datePartSelect() {}

 Property Value

Boolean. true if date part selection should be enabled, otherwise false.

 Remarks

Part selection of a date is allowing only a specific part of the date to be selected.

 Example

The following code creates a new DateTimePicker using an HTML div element with an id "date_picker". The dateTimePicker advances with one day, tries to parse incomplete output and allows part selection of the date:

JavaScript  Copy Code

var u = MindFusion.Common.UI;

var dateTimePicker = new ui.DateTimePicker(document.getElementById("date_picker"));
//advance for 1 day
dateTimePicker.advance(0, 0, 1);
dateTimePicker.autoComplete = true;
dateTimePicker.datePartSelect = true;

 See Also