CA Service Management

 View Only

Dynamically adjust table height attribute based on inserted rows

  • 1.  Dynamically adjust table height attribute based on inserted rows

    Posted Oct 21, 2020 12:23 PM
    Hey,

    fairly new to CA Service Catalog and I need to dynamically change the height for my table, based on rows that are within my table.
    I have an array of values which are comma separated and for each value I insert a new row containing this value. The static table height is set to 250 and I want to adjust this height attribute for about 25px per entry in the array, up to a maximum of 750px. So for example if I have an array containing 20 values I want the height to be 500.

    Is there a way to address the height attribute directly within JavaScript or are there any workarounds for this? I didnt find anything in the documentation or in the communities yet regarding this topic.

    Thanks in advance!
    Lukas