mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°2847 - Shortcut buttons look
This commit is contained in:
@@ -271,7 +271,8 @@ class ButtonFactory
|
|||||||
*/
|
*/
|
||||||
public static function MakeLinkNeutral(string $sURL, ?string $sLabel = null, ?string $sIconClass = null, ?string $sName = null, ?string $sTarget = null, ?string $sId = null): Button
|
public static function MakeLinkNeutral(string $sURL, ?string $sLabel = null, ?string $sIconClass = null, ?string $sName = null, ?string $sTarget = null, ?string $sId = null): Button
|
||||||
{
|
{
|
||||||
$oButton = static::MakeForAction($sLabel, Button::ENUM_COLOR_NEUTRAL, Button::ENUM_ACTION_TYPE_ALTERNATIVE, null, $sName, false, $sId);
|
$sType = empty($sIconClass) ? Button::ENUM_ACTION_TYPE_REGULAR : Button::ENUM_ACTION_TYPE_ALTERNATIVE;
|
||||||
|
$oButton = static::MakeForAction($sLabel, Button::ENUM_COLOR_NEUTRAL, $sType, null, $sName, false, $sId);
|
||||||
|
|
||||||
if (!empty($sIconClass)) {
|
if (!empty($sIconClass)) {
|
||||||
$oButton->SetIconClass($sIconClass);
|
$oButton->SetIconClass($sIconClass);
|
||||||
|
|||||||
Reference in New Issue
Block a user