[DateRangePicker] Is bootstrap css (and others) needed?

[DateRangePicker] Is bootstrap css (and others) needed?

  
Forge Component
(3)
Published on 20 Jun by Niels Favreau
3 votes
Published on 20 Jun by Niels Favreau

Hi,

I like this component.
But are all the css includes needed.
The bootstrap css destroys our styling on the webpage on other parts than the dateRange component.

When I look at the implementation of the original there is no bootstrap included:
http://www.daterangepicker.com/

These are included:

SyntaxEditor Code Snippet

<link rel=""stylesheet"" type=""text/css"" href=""/DateRangepicker/bootstrap.css"">
<link rel=""stylesheet"" type=""text/css"" href=""/DateRangepicker/daterangepicker.css"">
<script src='/DateRangepicker/bootstrap.min.js'></script>
<script src='/DateRangepicker/moment.min.js'></script>
<script src='/DateRangepicker/daterangepicker.js'></script>

I have removed the bootstrap css / js from this implementation but it's not working than anymore :)

I will implement the new version from http://www.daterangepicker.com without the bootstrap css

Hi Johan,

Indeed, it seems they have a new version without using bootstrap at all.
I will try to remove bootstrap or I will upgrade this component to the newest version.

Thanks,

Niels F.

Niels Favreau wrote:

Hi Johan,

Indeed, it seems they have a new version without using bootstrap at all.
I will try to remove bootstrap or I will upgrade this component to the newest version.

Thanks,

Niels F.

Hi,
Thanks when will you do this? Because we need it in a project. Otherwise I have to make my own version of it.


Solution

Hi,

I uploaded a new version to the forge! :) No bootstrap anymore.


Greetings,
Niels F.

Solution

Thank you very much!

Hi,

Could you make the component to use the local resources instead of on 

SyntaxEditor Code Snippet

https://cdn.jsdelivr.net/


Now you can only use it if your have access to the jsdelivr site.

Or even better make it optional?

Yeah sure.

I did a quick fix since my time is limited.

I will make it cleaner tonight and release a new version.

Greetings,

Niels F.

Niels Favreau wrote:

Yeah sure.

I did a quick fix since my time is limited.

I will make it cleaner tonight and release a new version.

Greetings,

Niels F.


Thanks!

I've already uploaded a new version where it's using local resources.

I will implement the 'optional' part with the next major version I'm planning to release.

Thanks, have a nice day.