DataTable not working on Laravel
First I get Typescript error because Jquery is not included in page.. Once I include Jquery(I thought this theme came DataTable ready?.. ) I get this error,
Uncaught TypeError: $(...).DataTable is not a function
at HTMLDocument. (customers:2297:165)
at j (jquery.js:3148:30)
at Object.fireWith [as resolveWith] (jquery.js:3260:7)
at Function.ready (jquery.js:3472:13)
at HTMLDocument.J (jquery.js:3503:10)..
Why is my Datatable not working?
It oads the column but after it gets to scripting everything shuts down..
You can add this three lines into Tag
Next, you can write script tage after the tag
I need to know where can I insert the CSS that came with metronic for DataTables because it is not applying Metronics css
'page here' => [
'*' => [
'title' => 'page title here',
'assets' => [
'custom' => [
'css' => [
'js' => [
Otherwise you can put the scripts in line under the in that specific page or yield a script directly.
Thank you! Everything is good now! Except now i get this Button saying processing in the middle of the table.. Any idea why? Its that it doesnt let the button create appear.. do i need another step?
Also if you're having trouble I always reference the Metronic Laravel Documentation.