pikaday_datepicker 0.8.7 copy "pikaday_datepicker: ^0.8.7" to clipboard
pikaday_datepicker: ^0.8.7 copied to clipboard

outdatedDart 1 only

Provides an Angular2 datepicker component by wrapping the lightweight pikaday js-library.

example/main.dart

import 'package:angular2/platform/browser.dart';
import 'package:angular2/core.dart';

import 'package:pikaday_datepicker/pikaday_datepicker.dart';

void main() {
  bootstrap(AppComponent);
}

// example app to showcase the PikadayComponent.
@Component(
    selector: 'showcase-pikadate-component',
    template: '''<h1>AngularDart2-datepicker</h1>
                 <pikaday [(day)]="selectedDay" format="DD-MM-YYYY"
                          firstDay="1" minDate="2010-1-1" maxDate="2025-12-31"
                          placeholder="select a day" showDayOnInit="false">
                 </pikaday>
                 <div>selectedDay: {{selectedDay | date}}</div>''',
    directives: const [PikadayComponent])
class AppComponent {
  DateTime selectedDay = new DateTime(2015, 2, 1);
}
0
likes
35
pub points
0%
popularity

Publisher

unverified uploader

Provides an Angular2 datepicker component by wrapping the lightweight pikaday js-library.

Repository (GitHub)
View/report issues

License

BSD-2-Clause, MIT (LICENSE)

Dependencies

angular2

More

Packages that depend on pikaday_datepicker