source: admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center/lib/bower_components/eonasdan-bootstrap-datetimepicker/docs/FAQ.md @ 6782

Last change on this file since 6782 was 6782, checked in by kbut, 20 months ago

add moment and datetimepicker bootstrap plugin

File size: 1.1 KB
Line 
1# FAQs
2
3# How do I disable the date or time element
4<small>How do I format ...; How do I add seconds; etc.</small>
5
6The picker uses the `format` option to decide what components to show. Set `format` to `LT`, `LTS` or another valid [MomentJs format string](http://momentjs.com/docs/#/displaying/format/) to display certain components
7
8# How do I change the language/locale
9
10The picker uses MomentJs to determine the language string. You can use `moment-with-locales` or you can include whatever local file you need. Set the picker's `locale` option to `de` or whatever the locale string is.
11
12# How do I change the styles? The picker closes.
13
14Set `debug:true` which will force the picker to stay open, even `onBlur`. You can hide the picker manually by calling `hide()`
15
16# How do I change the start of the week?
17
18Start of the week is based on the [`locale` provided](Options.md#locale). This is defined by moment's locales. If you want to change it, create your own locale file or override. [See moment's docs](http://momentjs.com/docs/#/i18n/).
19
20# How I use the picker as birthday picker?
21
22Use the [`viewMode`](Options.md#viewmode) option to `'years'`
Note: See TracBrowser for help on using the repository browser.