flatpickr 1.0.0 copy "flatpickr: ^1.0.0" to clipboard
flatpickr: ^1.0.0 copied to clipboard

Platformweb

Dart JS interop for flatpickr - a lightweight and powerful datetime picker.

example/example.dart

import 'dart:html';

import 'package:flatpickr/flatpickr.dart';
import 'package:js/js.dart';

void main() {
  final el = document.getElementById('test_input');

  final options = FlatpickrOptions(
    enableTime: true,
    showMonths: 2,
    onChange: allowInterop((selectedDates, dateStr, instance, e) {
      print(selectedDates);
    }),
  );

  final obj = Flatpickr(el, options);

  obj.open(); // or any other instance method
}
1
likes
140
pub points
0%
popularity

Publisher

unverified uploader

Dart JS interop for flatpickr - a lightweight and powerful datetime picker.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

js

More

Packages that depend on flatpickr