4 Replies Latest reply on Feb 13, 2020 8:03 PM by Duncan Mills-Oracle

    How to use a snippet of HTML/View in multiple Views?


      I have a listView that I use on 3 different views/ViewModels. As a result, in these views I have the same listView definition which bugs me as I have to remember to update any changes throughout. I know deep down this isnt the best way to do things.


      Is there a way I can just have the listView defined in a separate html file, and then in the view just insert <listView from HTML>? Assuming of course all of my variables, and everything else match up. The way I retrieve the data changes between viewModels but the actual listView itself is pretty stationary. I have tried looking for some examples, apologies if I have missed anything.

      Thanks for your time!