Skip to content

whq731/ng-static-daterange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#ng-static-daterange

version 1.0

基于angular 1.x 和 bootstrap 3 选择固定时间段插件

for user choose static date range

Demo

Watch the Tree component in action on the demo page.

Requirements

Angular 1.x and Bootstrap 3

Usage

Download

  • Using bower to install it. bower install ng-static-daterange
  • Using npm to install it . npm install ng-static-daterange

Code

Add the sortable module as a dependency to your application module:

var myAppModule = angular.module('MyApp', ['ngStaticDateRange'])
<p ng-static-date-range on-range-change="dateRangeChanged($dateRange)" range-model="dateRange" format="yyyy/MM/dd" class="form-group"></p>

Attributes

on-range-change

like ng-change,when date range are changeed

range-model

binding model,will init to {startDate: xxx, endDate: xxx},both startDate and endDate are Date type.

range-count

how many days the static range are.

format

format of date range to display .

About

angular static date range directive

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published