Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 114 - STRETCHMIN, STRETCHMAX  (Read 274 times)
Reuben B.
Four Js
Posts: 935


« on: February 21, 2022, 02:20:58 am »

If I was responsible for an organisations code base and coding standards, with the release of Genero Enterprise 4.00 and the various responsive features, one of the coding standards I would add is that table columns that a) contain character data and b) have a width greater than 15, I would say that these columns should have STRETCH=X.
 
Most codes and numeric values are consistent in their width and less than 15 characters, whilst most name, description, address type data are textual, vary in length and are often designed with a maximum length that is rarely encountered.  By adding STRETCH=X to these columns, they will stretch and shrink in width in response to the width of the table.
 
However you may not want these columns to stretch too far or shrink too small, the new attributes STRETCHMIN and STRETCHMAX allow you to constrain just how much a column can stretch.
 
To learn more, read https://4js.com/ask-reuben/ig-114/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines