Skip to content

Commit ad8e423

Browse files
janmyszkiersebbmeyer
authored andcommitted
Add possibility to set selectAction of TextRun
add missing setter method
1 parent c549b74 commit ad8e423

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: src/Cards/Adaptive/Elements/TextRun.php

+14
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Sebbmyr\Teams\Cards\Adaptive\Elements;
44

5+
use Sebbmyr\Teams\Cards\Adaptive\Actions\AdaptiveCardAction;
6+
57
/**
68
* TextRun element
79
*
@@ -268,6 +270,18 @@ public function setItalic($italic)
268270
return $this;
269271
}
270272

273+
/**
274+
* Sets SelectAction. Available options can be found in Cards/Adaptive/Actions.php
275+
* @param string $selectAction
276+
* @return TextRun
277+
*/
278+
public function setSelectAction(AdaptiveCardAction $selectAction)
279+
{
280+
$this->selectAction = $selectAction;
281+
282+
return $this;
283+
}
284+
271285
/**
272286
* Sets font size. Available options can be found in Styles.php
273287
* @param string $size

0 commit comments

Comments
 (0)