Back
textSizeLens
Editing, Updating and Creating Records
textSizeLens
Determines the size of input text and textarea fields
Default:
Manages the size of input and textarea fields. The syntax is:

"ColumnName^columns^rows^columns_for_small_screens";

If rows is omitted, it defaults to 1. If rows > 1 then a textarea is used.

Multiple Screen Sizes
Since phpLens 3.9, you can set the input width for screen sizes which are 600x800 and a second input width for larger than 600x800.

For example:

$lens->textSizeLens = 'Field1^60^1^30';

This means that if the screen is 600x800, the field dimensions is 1x30. If the screen is larger, use 1x60.

This requires you to add the javascript file phplens/img/screensize.js
to your javascript includes for all relevant pages. This will add a cookie that sets the screen size of the browser. PhpLens will read this cookie and set the input size based on this setting.

eg.

<script src=/path/to/phplens/img/screensize.js></script>


Syntax
#To set a field "col1" to 60x3 and set "col2" to 40x1 use:

$lens->textSizeLens = "col1^60^3;col2^40";

 Basic:Yes  Advanced/Enterprise:Yes  DynamicEdit:Yes   [Version 1.3]