Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

To make the datetime always LTR

<style>
.form-group .pull-right *
{
direction: ltr !important;
}
</style>

/* Note: the most important is the "*" thing. */

/* Extra information fot the bootstrap datetime */
<script>
$('.datetime').datetimepicker({
    format: 'YYYY-MM-DD HH:mm:ss',
    locale: 'en',
    sideBySide: true,
    showClose: true,
    widgetPositioning: {
        horizontal: '{{ Config::get('app.locale') == 'en' ? 'left' : 'right'}}',
        vertical: 'bottom'
    },
    toolbarPlacement: 'bottom',
    icons: {
        up: 'fas fa-chevron-up',
        down: 'fas fa-chevron-down',
        previous: 'fas fa-chevron-left',
        next: 'fas fa-chevron-right',
        close: 'fas fa-check fa-lg'
    }
});
</script>

 
PREVIOUS NEXT
Tagged: #To #datetime #LTR
ADD COMMENT
Topic
Name
5+5 =