bootjack_datepicker 1.0.0

  • README.md
  • Installing
  • Versions
  • 73

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.
  • 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:


dependencies:
  bootjack_datepicker: ^1.0.0

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
1.0.0 Aug 9, 2018 Go to the documentation of bootjack_datepicker 1.0.0 Download bootjack_datepicker 1.0.0 archive
0.5.8+3 Jul 19, 2018 Go to the documentation of bootjack_datepicker 0.5.8+3 Download bootjack_datepicker 0.5.8+3 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

All 39 versions...

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

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

  • Dart: 2.0.0
  • pana: 0.12.4

Platforms

Detected platforms: web

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

Health suggestions

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.

Format lib/src/calendar.dart.

Run dartfmt to format lib/src/calendar.dart.

Format lib/src/timepicker.dart.

Run dartfmt to format lib/src/timepicker.dart.

Maintenance issues and suggestions

Maintain CHANGELOG.md. (-20 points)

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

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.

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 >=2.0.0 <3.0.0
bootjack any 1.0.0+1
dquery any 1.0.0+1
intl any 0.15.7
rikulo_commons any 3.0.3+1
Transitive dependencies
charcode 1.1.2
logging 0.11.3+2
mime 0.9.6+2
path 1.6.2