无网络连接
  1. Home
  2. General

CSS and Convert CSV to HTML Table

作者:@matty
    2023-01-10 19:23:38.458Z

    Good day,

    When using the "Convert CSV to HTML Table" operation is there a built in way to style the table?

    Thanks,

    Matt

    • 6 回复
    1. D
      Daniel Horton @daniel.horton
        2023-01-11 09:40:13.261Z

        Hi Matty,

        Not specifically when using that method. It is presumed that the HTML would be embedded into a HTML file/object that contains external styling which would apply to the HTML object you insert from ThinkAutomation. You can use the HTML Wrap Action to potentially perform the generation of your styled full HTML document within ThinkAutomation - https://support.thinkautomation.com/#wrap-html

        1. M@matty
            2023-01-11 20:48:23.346Z

            Okay thanks got it.

            I have been working on a convert CSV to HTML table project incorporating a webform automation and was thinking it would be very cool to somehow incorporate https://bootstrap-table.com/docs/getting-started/introduction/.

            Is there a way to add

            <script></script>
            

            and will the page also have jquery as per the getting started docs?

            Thanks,

            Matt

            1. DDaniel Horton @daniel.horton
                2023-01-12 09:28:43.471Z

                Hi Matty,

                Yes, that should be possible to include into the Wrap HTML action type. There is existing support for Bootstrap itself but additional libraries or CSS would require referencing for them to function.

                1. M@matty
                    2023-01-12 19:35:10.629Z

                    Thanks Daniel,

                    When I inspect the webform result page i see that there is an error relating to Jquery:

                    Uncaught TypeError: Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.
                    at Object.jQueryDetection (util.js:179:13)
                    at util.js:195:6
                    at bootstrap.min.js:6:200
                    at bootstrap.min.js:6:288

                    1. DDaniel Horton @daniel.horton
                        2023-01-13 09:03:02.576Z

                        Hi Matty,

                        Is this only occurring when you run your content? It is possible to supply the content you are using so we can review it further?

                2. M
                  回复matty:
                  @matty
                    2023-01-13 10:00:32.949Z

                    I can supply the content However it is only an html ,table nothing else. It will take me a bit to supply.