bootjack_datepicker 1.0.1+5

Bootjack Datepicker #

Bootjack datepicker component is a datepicker component of Bootjack.

Install from Dart Pub Repository #

Include the following in your pubspec.yaml:

  bootjack_datepicker: any

Then run the Pub Package Manager in Dart Editor (Tool > Pub Install). If you are using a different editor, run the command (comes with the Dart SDK):

pub install

Usage #

First of all in your HTML file, you need to include the CSS resource:

		<link rel="stylesheet" href="packages/bootjack_datepicker/css/bootjack-datepicker.min.css">

Embedded calendar #

To create a calendar component to your HTML page, add class="calendar" to the element you want to attach to (most typically this would be the <div>), then you can specify data-date and data-format to the element for specify a default value and date format.

	<div class="calendar" data-date="2013/09/16" data-format="yyyy/MM/dd"></div>

Then call the following global registration in Dart:

	void main() {

Datepicker #

Using a calendar component in a dropdown div element as a date picker component, add class="calendar" to the element you want to attach to, then add the data-target attribute with the ID or class of the element that you want to display the date value.

	<div class="input-group">
	  <input id="inp" type="text" class="form-control">
	  <div class="input-group-btn">
		<button id="btn" class="btn btn-default dropdown-toggle" 
			type="button" data-toggle="dropdown">
		  <span class="glyphicon glyphicon-calendar"></span>
		<div class="dropdown-menu" >
			<div class="calendar" data-date="2013/09/16" data-format="yyyy/MM/dd"

Then call the following global registration in Dart:

	void main() {

Check more examples.

Notes to Contributors #

Test and Debug #

You are welcome to submit bugs and feature requests. Or even better if you can fix or implement them!

Fork Bootjack Datepicker #

If you'd like to contribute back to the core, you can fork this repository and send us a pull request, when it is ready.

Please be aware that one of Rikulo's design goals is to keep the sphere of API as neat and consistency as possible. Strong enhancement always demands greater consensus.

If you are new to Git or GitHub, please read this guide first.

Who Uses #

  • Quire - a simple, collaborative, multi-level task management tool.
  • Keikai - a sophisticated spreadsheet for big data

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  bootjack_datepicker: ^1.0.1+5

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:bootjack_datepicker/bootjack_datepicker.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21


Detected platforms: web

Primary library: package:bootjack_datepicker/bootjack_datepicker.dart with components: html.

Health suggestions

Fix lib/src/timepicker.dart. (-18.17 points)

Analysis of lib/src/timepicker.dart reported 40 hints, including:

line 6 col 3: Prefer using /// for doc comments.

line 18 col 3: Prefer using /// for doc comments.

line 22 col 3: Prefer using /// for doc comments.

line 26 col 3: Prefer using /// for doc comments.

line 30 col 3: Prefer using /// for doc comments.

Fix lib/src/calendar.dart. (-12.66 points)

Analysis of lib/src/calendar.dart reported 27 hints, including:

line 3 col 1: Prefer using /// for doc comments.

line 82 col 3: Prefer using /// for doc comments.

line 86 col 3: Avoid return types on setters.

line 93 col 3: Prefer using /// for doc comments.

line 97 col 3: Avoid return types on setters.

Format lib/bootjack_datepicker.dart.

Run dartfmt to format lib/bootjack_datepicker.dart.

Format lib/bootjack_timepicker.dart.

Run dartfmt to format lib/bootjack_timepicker.dart.

Maintenance issues and suggestions

Provide a file named (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Use constrained dependencies. (-20 points)

The pubspec.yaml contains 4 dependencies without version constraints. Specify version ranges for the following dependencies: bootjack, dquery, intl, rikulo_commons.

Documentation URL doesn't exist. (-10 points)

At the time of the analysis the documentation field was unreachable.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and bootjack_datepicker.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.0 <3.0.0
bootjack any 1.0.1
dquery any 1.0.0+1
intl any 0.16.0
rikulo_commons any 3.3.0
Transitive dependencies
charcode 1.1.2
logging 0.11.3+2
mime 0.9.6+3
path 1.6.4