Skip to content

Commit

Permalink
add code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehristov committed Jan 7, 2020
1 parent 8f15157 commit f8a08e2
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/TableColumn/ActionButtons.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ class ActionButtons extends Generic
{
use FactoryTrait;

/**
* Stores all the buttons that have been added
*
* @var array
*/
public $buttons = [];

/**
Expand Down Expand Up @@ -39,7 +44,7 @@ public function init()
* @throws \atk4\core\Exception
* @throws \atk4\data\Exception
*
* @return object
* @return View
*/
public function addButton($button, $action = null, $confirm = false, $isDisabled = false)
{
Expand Down Expand Up @@ -91,9 +96,18 @@ public function addButton($button, $action = null, $confirm = false, $isDisabled
return $button;
}


/**
* Adds a new button which will open a modal dialog and dynamically
* load contents through $callback. Will pass a virtual page.
*
* @param View|string $button
* @param string $title
* @param callable $callback
* @param View $owner
* @param array $args
*
* @return View
*/
public function addModal($button, $title, $callback, $owner = null, $args = [])
{
Expand Down

0 comments on commit f8a08e2

Please sign in to comment.