MDL-68148 core_user: set the fullname column as the header column

ref: https://www.w3.org/WAI/tutorials/tables/
This commit is contained in:
Shamim Rezaie
2020-04-08 11:22:34 +10:00
parent 1a94ddd31b
commit 8a805e03a4
+3
View File
@@ -211,6 +211,9 @@ class participants_table extends \table_sql implements dynamic_table {
$this->define_columns($columns);
$this->define_headers($headers);
// The name column is a header.
$this->define_header_column('fullname');
// Make this table sorted by last name by default.
$this->sortable(true, 'lastname');