mirror of
https://github.com/wassname/angular-timezone-selector.git
synced 2026-07-08 17:17:37 +08:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d94c79a328 | |||
| 37e68f606e | |||
| 80ce0aaace | |||
| 98cf4068f3 | |||
| 9825c73da9 |
@@ -6,8 +6,16 @@ The user is able to choose their timezone by either typing the name of their cou
|
|||||||
|
|
||||||
The angular model that is bound to this directive will be set to the timezone name as used by [moment-timezone](http://momentjs.com/timezone/docs/) i.e `Pacific/Auckland`.
|
The angular model that is bound to this directive will be set to the timezone name as used by [moment-timezone](http://momentjs.com/timezone/docs/) i.e `Pacific/Auckland`.
|
||||||
|
|
||||||
|
[View Demo](http://mishguruorg.github.io/angular-timezone-selector/)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
Install using bower
|
||||||
|
|
||||||
|
```
|
||||||
|
bower install angular-timezone-selector
|
||||||
|
```
|
||||||
|
|
||||||
Make your Angular module depend on module `angular-timezone-selector`.
|
Make your Angular module depend on module `angular-timezone-selector`.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
|||||||
Vendored
+2
-1
@@ -97,7 +97,8 @@ angular.module('angular-timezone-selector', [])
|
|||||||
width: '300px',
|
width: '300px',
|
||||||
include_group_label_in_selected: true,
|
include_group_label_in_selected: true,
|
||||||
search_contains: true,
|
search_contains: true,
|
||||||
no_results_text: 'No results, try searching for the name of your country or nearest major city.'
|
no_results_text: 'No results, try searching for the name of your country or nearest major city.',
|
||||||
|
placeholder_text_single: 'Choose a timezone'
|
||||||
})
|
})
|
||||||
|
|
||||||
// Update the box if ngModel changes
|
// Update the box if ngModel changes
|
||||||
|
|||||||
Reference in New Issue
Block a user