Skip to content

Instantly share code, notes, and snippets.

@mfyance
Created August 31, 2017 21:34
Show Gist options
  • Save mfyance/7eb27cd3d5e3fc9e76bd159ab9b0129c to your computer and use it in GitHub Desktop.
Save mfyance/7eb27cd3d5e3fc9e76bd159ab9b0129c to your computer and use it in GitHub Desktop.
flatpickr - Agregar nuevo parámetro en su config
var calendar = document.querySelector("#fechaFin")._flatpickr;
calendar.set("minDate", $scope.oData.strFechaFin);
// Otra forma de agregar un parámetro en el config del datepicker
calendar.config.minDate = $scope.oData.strFechaFin;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment