MDL-66816 question bank: replace row of edit icons with an Edit menu

This commit is contained in:
Tim Hunt
2019-10-18 14:27:50 +01:00
parent aaff6692a1
commit 701ae1eb4b
26 changed files with 602 additions and 111 deletions
+5 -7
View File
@@ -4200,32 +4200,32 @@ class action_menu implements renderable, templatable {
/**
* An icon to use for the toggling the secondary menu (dropdown).
* @var actionicon
* @var pix_icon
*/
public $actionicon;
/**
* Any text to use for the toggling the secondary menu (dropdown).
* @var menutrigger
* @var string
*/
public $menutrigger = '';
/**
* Any extra classes for toggling to the secondary menu.
* @var triggerextraclasses
* @var string
*/
public $triggerextraclasses = '';
/**
* Place the action menu before all other actions.
* @var prioritise
* @var bool
*/
public $prioritise = false;
/**
* Constructs the action menu with the given items.
*
* @param array $actions An array of actions.
* @param array $actions An array of actions (action_menu_link|pix_icon|string).
*/
public function __construct(array $actions = array()) {
static $initialised = 0;
@@ -4259,7 +4259,6 @@ class action_menu implements renderable, templatable {
* Sets the label for the menu trigger.
*
* @param string $label The text
* @return null
*/
public function set_action_label($label) {
$this->actionlabel = $label;
@@ -4270,7 +4269,6 @@ class action_menu implements renderable, templatable {
*
* @param string $trigger The text
* @param string $extraclasses Extra classes to style the secondary menu toggle.
* @return null
*/
public function set_menu_trigger($trigger, $extraclasses = '') {
$this->menutrigger = $trigger;