mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 09:38:48 +02:00
Allow Select options to be disabled
This commit is contained in:
@@ -20,6 +20,8 @@ class SelectOption extends UIBlock
|
||||
protected $sLabel;
|
||||
/** @var bool */
|
||||
protected $bSelected;
|
||||
/** @var bool */
|
||||
protected $bDisabled;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
@@ -76,6 +78,25 @@ class SelectOption extends UIBlock
|
||||
{
|
||||
$this->bSelected = $bSelected;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function IsDisabled(): bool
|
||||
{
|
||||
return $this->bDisabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $bDisabled
|
||||
*
|
||||
* @return SelectOption
|
||||
*/
|
||||
public function SetDisabled(bool $bDisabled): SelectOption
|
||||
{
|
||||
$this->bDisabled = $bDisabled;
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user