{hero}

minutesAvailable

Since: DateTime 1.0.0

Sets which minutes are selectable.
Please note - this property requires the DateTime extension for DataTables.

Description

This option allows the user to restrict which minutes the user is able to select. Any values that are placed within the array are going to be selectable while all others will not.

Types

null

Description:

When this option is null all of the minutes are selectable.

number[]

Description:

When this option is an array, any value for the minute that is in this array will be selectable and all others will not.

Default

  • Value: null

By default all of the minutes will be selectable.

Example

Restrict the user to select either 00, 15, 30 or 45:

$(document).ready(function () {
	new DateTime(document.getElementById('test'), {
		minutesAvailable: [00, 15, 30, 45]
	});
});