Skip to content

Commit

Permalink
🐛 #7 fix TDataGridColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Jul 21, 2020
1 parent 4d750b0 commit b1d2317
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/control/forms/MunicipioForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ public function __construct()

// add the columns
$col_id = new TDataGridColumn('cod_municipio', 'Cod', 'right', '10%');
$col_name = new TDataGridColumn('nom_municipio', 'Nome');
$col_uf = new TDataGridColumn('uf->nom_uf', 'UF');
$col_regiao= new TDataGridColumn('uf->regiao->nom_regiao', 'Região');
$col_name = new TDataGridColumn('nom_municipio', 'Nome','left');
$col_uf = new TDataGridColumn('uf->nom_uf', 'UF','left');
$col_regiao= new TDataGridColumn('uf->regiao->nom_regiao', 'Região','left');

$this->datagrid->addColumn($col_id);
$this->datagrid->addColumn($col_name);
$this->datagrid->addColumn($col_uf);
$this->datagrid->addColumn($col_regiao);
$this->datagrid->addColumn(new TDataGridColumn('sit_ativo', 'Ativo'));
$this->datagrid->addColumn(new TDataGridColumn('sit_ativo', 'Ativo','left'));

$col_id->setAction( new TAction([$this, 'onReload']), ['order' => 'cod_municipio']);
$col_name->setAction( new TAction([$this, 'onReload']), ['order' => 'nom_municipio']);
Expand Down

0 comments on commit b1d2317

Please sign in to comment.