Vizlib Home Try Vizlib
Welcome
Login
Planned

Field value length issue in

When using Vizlib Table/Filter we  have noticed that when hovering over a cell that has more than 1024 characters, the entire text is not presented and gets truncated.


Case reference: #37872


Attached the document for reference.

docx
  • Hi Manuel,

    Thank you for sending this to us. We understand the value of this for you and our wider Vizlib userbase.

    I have gone ahead and created an internal task for us.

    Please note your unique ticket reference (#37952) and URL https://community.vizlib.com/helpdesk/tickets/37952

    Kind regards,
    Luke T
    Vizlib | Product Manager
  • Hi Manuel,

    Hope you are well.

    One of our developers has some feedback for you to try out.

    I have tested the attached application and noticed some odd behaviour:
    1. For the second column “Level_1” you are using “XAI_level1_html” variable which is a string containing multiple HTML elements. 
    1<style>div {width: 150px;word-wrap: normal;}</style> 
    2<div><span style=\"font-family: monospace;\"> 
    3  ...span elements 
    4</div> 
    Declaration of rule div {width: 150px;word-wrap: normal;}  modifies all div elements inside the app and it breaks the view. Style tags should be removed from this variable or have to be properly declared e.g. some class name. 
    If you want to adjust styles for a specific HTML element then need to do that by <element style"...here are styles">...content</content>" not style tag or use at least some generic class names.
    2. Our tooltips don’t wrap long strings, so the text content can be displayed in one line. To fix it the User can add white-space style to specific container elements like div. eg. <div style"white-space: pre-wrap;">... content here...</div>
    So hotfixes for the client:
    - Remove all style tags from the source of variables.
    - Add white-space: pre-wrap to element which includes the content. 
      e.g. modify expression for cell tooltip content like: 
    1='<div style="white-space: pre-wrap;">' & XAI_level1_html & '</div>'`.

    Hopefully, you can begin working on this and let us know how you get on with it.

    Please note your unique ticket reference (#37952) and URL https://community.vizlib.com/helpdesk/tickets/37952

    Kind regards,
    Luke T
    Vizlib | Product Manager
Login to post a comment