Content Management and Capture

 View Only

Column width on plugin development feature - ICN

  • 1.  Column width on plugin development feature - ICN

    Posted Tue January 30, 2024 03:36 PM
      |   view attached

    Hi Team,

    I've developed a plugin that implements a feature which displays a document list based on a specific query. The plugin is developed using Dojo for the client-side.

    In this feature, I'm using the 'ecm.widget.listView.ContentList' widget to show the list of documents. The feature calls a service to retrieve the documents. This service first builds the structure of the grid and then adds rows to the grid.

    When the structure is built, I'm setting each column width to '200px' like this: 'jsonResultSet.addColumn(new JSONResultSetColumn(label, "200px", name, null, true))'.

    For some reason, this code sets the maximum width of the column instead of the actual width.

    I need to be able to set the minimum width of the column because this way, the column width is determined by the longest value in that specific column, and for columns with short values the title is not fully visibleץ

    Example attached.

    Your help would be much appreciated.

    Eron Cohen