Socket
Socket
Sign inDemoInstall

fng-bootstrap-time

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fng-bootstrap-time

Time input plugin for forms-angular, using the Bootstrap timepicker from Angular-ui-bootstrap


Version published
Weekly downloads
3
Maintainers
1
Install size
4.57 kB
Created
Weekly downloads
 

Readme

Source

fng-bootstrap-date

Plugin for forms-angular that adds date picker from Angular UI Bootstrap support.

Usage

bower install fng-bootstrap-date

Add the following line to your index.html (or equivalent) file.

<script src="bower_components/fng-bootstrap-date/fng-bootstrap-date.js"></script>

Add fng.uiBootstrapDate to the list of servies your Angular module depends on.

In your Mongoose schemas you can set up fields like this:

applicationReceived: {type: Date, form: {
    directive:"fng-ui-bootstrap-date-picker", 
    fngUiBootstrapDatePicker: {
        format: 'dd MMM yyyy', 
        "ng-model-options":"{timezone:\'UTC\'}" 
    }
}},

Options can be added to a fngUiBootstrapDatePicker object within the form object as illustrated by the examples above. For (my) convenience, the default format has been changed to dd/MM/yyyy

###Known Limitations:

Styling in (unsupported) Bootstrap 2 applications (such as the forms-angular.org website at the time of writing) has a few issues, including inline help placing and the width of the first columnof the dropdown when weeks are not shown.

Keywords

FAQs

Last updated on 18 Jul 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc