- Parameters:
- $col_name: column name
- $size/$cols: If the column is a text box, it’s the size that represents number of characters. If the column is a textarea, it’s the value for cols attribute in textarea.
- $rows: Optional. Number of rows in a textarea
- Description:
- Set input text box size or textarea cols and rows values in edit form.
- Set input text box size or textarea cols and rows values in edit form.
- Remark:
- To set dimension for entire edit form, use set_form_dimension()
- Example:
1 2 3 4 5 | // status is a text fields, 40 indicates the text field is 40 characters long. $dg -> set_col_edit_dimension("status", 40); // comments, a text data type, is rendered as textarea with cols set to 50, rows set to 10 $dg -> set_col_edit_dimension("comments", 50, 10); |