Skip to content

Commit

Permalink
Remove unused methods (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkSide666 authored Apr 6, 2024
1 parent a5987eb commit c3f9deb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
17 changes: 0 additions & 17 deletions src/Form/Control/Actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,8 @@

namespace Atk4\Login\Form\Control;

use Atk4\Data\Field;
use Atk4\Data\Model;

class Actions extends GenericDropdown
{
#[\Override]
public function setModel(Model $model): void
{
$this->renderRowFunction = static function (Field $field) {
return [
'value' => $field->shortName,
'title' => $field->caption ?? $field->shortName,
'icon' => $field->ui['icon'] ?? null,
];
};

parent::setModel($model);
}

#[\Override]
protected function renderView(): void
{
Expand Down
17 changes: 0 additions & 17 deletions src/Form/Control/Fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,8 @@

namespace Atk4\Login\Form\Control;

use Atk4\Data\Field;
use Atk4\Data\Model;

class Fields extends GenericDropdown
{
#[\Override]
public function setModel(Model $model): void
{
$this->renderRowFunction = static function (Field $field) {
return [
'value' => $field->shortName,
'title' => $field->getCaption(),
// 'icon' => ($field->shortName == $field->model->idField ? 'key' : null), // cannot get field->model here :(
];
};

parent::setModel($model);
}

#[\Override]
protected function renderView(): void
{
Expand Down

0 comments on commit c3f9deb

Please sign in to comment.