Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 1.93 KB

File metadata and controls

59 lines (47 loc) · 1.93 KB

Out-HTMLDataTable

Turning Powershell object into the HTML table using downloaded datatables.net

Main script's futures:

  • sort columns
  • dynamically global search
  • dynamically filter per columns
  • set row color depends on 'status' row (critical|stopped=red; OK|running=green; warning=yellow)
  • export to pdf/excel/csv and copy/print
  • save state (like order settings)
  • row selection

How to start?

. "C:\scripts\Out-HTMLDataTable.ps1"

How folder structure should looks like?

.\www\
       datatables\examples
       datatables\extensions
       datatables\media
       icons\favicon.png
.\table01.htm

How it's work?

Example #1

Example #2

Notes

Notice, that some files are downloaded from Internet:

So if you want to open reports on systems, that do not have Internet access just download these files and change Intenret paths to local paths in function.

Tested on:

  • Windows 10
  • Powershell 5.1
  • DataTables v1.10.13
  • free Mongoose Web Server v6.5

More Info

You can find more info and examples in Out-HTMLDataTable.ps1 file!

Author: Lukasz Wasko