Generator styling not working
Generator styling not working
I am very new to DataTables/Editor - just bought and downloaded it. I'm playing with the Generator, I created a download for a table on my database, uploaded it to my server etc - the data comes in OK from the database, but there is no styling (Bootstrap) applied. Hmm. Also I don't see jQuery included in the file generated by the Generator. I tried it on the live Generator site (https://editor.datatables.net/generator/index) and hit "Run Now" - and the live page also lacks CSS styling completely. What am I missing?
Answers
I've just tried it this is the result - note that it will be deleted automatically in about an hour.
Did you check the "Bootstrap" option after selecting Bootstrap 3 or 4 from the list? You need to make sure that you include the Bootstrap library - not just the Bootstrap styling option (its just after the styling options and appears after your select the Bootstrap 3/4 styling option.
Allan
Yes, I've included Bootstrap 4. Please see the attached screen shot:
Here is what the un-styled live Generator page looks like:
Here is what the generated HTML looks like:
**
Any clue what the problem could be?
Interestingly enough, Bootstrap 3 works fine. Bootstrap 4 does not.
Are you getting any errors reported in the console or network tab?
This is what I was using:
And get this:
Allan
Interesting - when I select jQuery 1, it works with Bootstrap 4. When I select jQuery 3, it does not work. . I do not get any errors in the Chrome console either way.