| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace ModulesGarden\ProxmoxAddon\Core\UI\Widget\Others;
- use ModulesGarden\ProxmoxAddon\Core\UI\Builder\BaseContainer;
- /**
- * CopyKeyForDataTable - a copy on click ui element
- *
- * @author Sławomir Miśkowicz <slawomir@modulesgarden.com>
- */
- class CopyKeyForDataTable extends BaseContainer
- {
- protected $id = 'copyKeyForDataTable';
- protected $name = 'copyKeyForDataTable';
- protected $vueComponent = true;
- protected $defaultVueComponentName = 'ds-copy-on-click';
- protected $textToCopy = null;
- public function setCopyText($textToCopy)
- {
- if (is_string($textToCopy) && $textToCopy !== '')
- {
- $this->textToCopy = $textToCopy;
- }
- return $this;
- }
- public function getCopyText()
- {
- return $this->textToCopy;
- }
- }
|