If containers/sections are not added explicitly to the view
through the "containers" property, these rows will be used
instead.
public addRow ( array $row, string $container = '' ) | ||
$row | array | A hash with the row information. Possible values: - label: (string) The row text. - selected: (boolean) Whether to mark the row as active. - style: (string) Additional CSS styles to apply to the row. - url (string) URL to link the row to. - type (string, optional) The row type, defaults to "tree". Further $row properties depending on the type: - tree: - cssClass: (string) CSS class for the icon. - id: (string) DOM ID for the row link. - checkbox: - radiobox: - color: (string, optional) Background color. - edit: (string, optional) URL for extra edit icon. |
$container | string | If using multiple sidebar sections, the ID of the section to add the row to. Sections will be rendered in the order of their first usage. |