Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

export.js use of


hello, I downloaded metronic v8.1.6, but how do I run datatable export? The ones used for the customer/list page only give a success message. Does not export


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


Hi,

If you need the export to be processed at frontend you can check this Datatables Export Buttons demo here.

Regards.



Thanks but There is a view here, but there is no such file in v8.1.6
docs/general/datatables/buttons/

There was this file in the previous version.
. It's okay, I can get it from the console, of course, but just for your information.



The above documentation page contains the HTML and JS code. You can create the JS script in src/js/custom/my-datatable.js and put the JS code there and them recompile your assets folder with Gulp or Webpack.

Please note that the build tools are required only in the development environment just to compile the assets when the source folder files are modified. In the hosting/server deployment you will only need the compile assets, no need to install the build tools dependencies there.



So in the production environment, there is no need for the tools directory with gulp, webpack related files, right? Just precompile will be enough?

I don't keep my js files under src but
Do I still need to compile with gulp when I add a different js file or customize it for my own project within the js file?



Hi,

Yes, in your production you do not need those build tools. Only compile assets and your pages will be deployed. No need to deploy webpack, npm, yarn, or gulp in your server. Those build tools are for your development just to manage the assets compilation.

Regards.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(