Bootstrap Glyphicons datetimepicker change icons

前端 未结 2 745
悲&欢浪女
悲&欢浪女 2021-01-12 00:20

I am using Bootstrap datetimepicker https://eonasdan.github.io/bootstrap-datetimepicker/

As mentioned in the document I was successfully able to change the up, down

2条回答
  •  一整个雨季
    2021-01-12 01:02

    In order to change left and right icons you just need to change in the below code:

    icons: {
            time: 'glyphicon glyphicon-time',
            date: 'glyphicon glyphicon-calendar',
            up: 'glyphicon glyphicon-chevron-up',
            down: 'glyphicon glyphicon-chevron-down',
            //previous: 'glyphicon glyphicon-chevron-left',
            previous: 'glyphicon glyphicon-backward',
            next: 'glyphicon glyphicon-chevron-right',
            today: 'glyphicon glyphicon-screenshot',
            clear: 'glyphicon glyphicon-trash',
            close: 'glyphicon glyphicon-remove'
        },
    

    By default the line which i have commented that icon is showing so if u need to change that icon you just simply have to set the path or any icon which you want to show.

    You can refer below link: https://eonasdan.github.io/bootstrap-datetimepicker/Options/

提交回复
热议问题