bootjack_datepicker 0.5.8+2

  • README.md
  • Installing
  • Versions
  • 85

Bootjack Datepicker

Bootjack datepicker component is a datepicker component of Bootjack.

Install from Dart Pub Repository

Include the following in your pubspec.yaml:

dependencies:
  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:

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

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() {
		Calendar.use();

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>
		</button>
		
		<div class="dropdown-menu" >
			<div class="calendar" data-date="2013/09/16" data-format="yyyy/MM/dd"
				data-target="#inp"></div>
		</div>
		
	  </div>
	</div>

Then call the following global registration in Dart:

	void main() {
		Calendar.use();
	}

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.

1. Depend on it

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


dependencies:
  bootjack_datepicker: "^0.5.8+2"

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';
        
Version Uploaded Documentation Archive
0.5.8+2 Jul 12, 2017 Go to the documentation of bootjack_datepicker 0.5.8+2 Download bootjack_datepicker 0.5.8+2 archive
0.5.8+1 Mar 16, 2017 Go to the documentation of bootjack_datepicker 0.5.8+1 Download bootjack_datepicker 0.5.8+1 archive
0.5.8 Jan 19, 2017 Go to the documentation of bootjack_datepicker 0.5.8 Download bootjack_datepicker 0.5.8 archive
0.5.7+3 Dec 8, 2016 Go to the documentation of bootjack_datepicker 0.5.7+3 Download bootjack_datepicker 0.5.7+3 archive
0.5.7+2 Nov 23, 2016 Go to the documentation of bootjack_datepicker 0.5.7+2 Download bootjack_datepicker 0.5.7+2 archive
0.5.7+1 Nov 15, 2016 Go to the documentation of bootjack_datepicker 0.5.7+1 Download bootjack_datepicker 0.5.7+1 archive
0.5.7 Nov 8, 2016 Go to the documentation of bootjack_datepicker 0.5.7 Download bootjack_datepicker 0.5.7 archive
0.5.6+5 Jun 17, 2016 Go to the documentation of bootjack_datepicker 0.5.6+5 Download bootjack_datepicker 0.5.6+5 archive
0.5.6+4 Jun 17, 2016 Go to the documentation of bootjack_datepicker 0.5.6+4 Download bootjack_datepicker 0.5.6+4 archive
0.5.6+3 Jun 16, 2016 Go to the documentation of bootjack_datepicker 0.5.6+3 Download bootjack_datepicker 0.5.6+3 archive

All 37 versions...

Analysis

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
80 / 100
Health:
Code health derived from static analysis. [more]
99 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
76 / 100
Overall score:
Weighted score of the above. [more]
85
Learn more about scoring.

Platforms

Detected platforms: web

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

Suggestions

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Use constrained dependencies.

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

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 5 hints.

    Run dartfmt to format lib/bootjack_datepicker.dart.

    Run dartfmt to format lib/bootjack_timepicker.dart.

    Similar analysis of the following files failed:

    • lib/src/calendar.dart (hint)
    • lib/src/timepicker.dart (hint)
  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use bootjack_datepicker.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.11.0
bootjack any 0.6.8
browser any 0.10.0+3
intl any 0.15.6
rikulo_commons >=2.0.5 2.3.8+1
Transitive dependencies
dquery 0.8.6
logging 0.11.3+1
mime 0.9.6
path 1.5.1