bugy / script-server

Web UI for your scripts with execution management
Other
1.52k stars 244 forks source link

Sort html table #674

Closed enriquetoledano closed 11 months ago

enriquetoledano commented 1 year ago

Hi:

Would it be possible to apply a class or an ID to HTML table generated as output from a script, so that the table becomes sortable (similar to activity logs)?

Thank you and best regards

bugy commented 1 year ago

Hi @enriquetoledano I think with an iframe option, you can include javascript into your output code, which could include sorting as well.

enriquetoledano commented 1 year ago

Yes thanks, I've got it working that way. I was just trying to use "html" instead of "html_iframe" (that I think is not recommended)

Thanks again

bugy commented 11 months ago

Just to note: iframe is not recommended as a default option. But of course, when you want to add some javascript, iframe is the only option.