Documentation

AddField

void
CAdminListRow::AddField(
  string $ID, 
  string $HTML[, 
  bool $edit = false]
)

The AddField method adds a generic editing mode field. The field is active in the editing mode only.

Parameters

Parameter Description
ID The cell identifier.
HTML The HTML code to be rendered in the cell in the editing mode.
edit Specifies that the cell value can be edited. Optional. False by default (cannot be edited).

Example:

$row->AddField(
    "ID", 
    '<a href="../. ./. ./. ./. ./. ./. ./. ./bitrix/admin/blog_blog_edit.php?id='.$f_id.'&lang='.language_id.
    '" title="'.GetMessage("BLB_UPDATE_ALT").'">'     .$f_ID     .'</a>' );
© «Bitrix24», 2001-2024
Up