| 1 | <?php  | 
            ||
| 8 | class PopoverField extends FieldGroup  | 
            ||
| 9 | { | 
            ||
| 10 | private static $cast = [  | 
            ||
| 11 | 'PopoverTitle' => 'HTMLText'  | 
            ||
| 12 | ];  | 
            ||
| 13 | |||
| 14 | /**  | 
            ||
| 15 | * Use custom react component  | 
            ||
| 16 | *  | 
            ||
| 17 | * @var string  | 
            ||
| 18 | */  | 
            ||
| 19 | protected $schemaComponent = 'PopoverField';  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * Optional title on popup box  | 
            ||
| 23 | *  | 
            ||
| 24 | * @var string  | 
            ||
| 25 | */  | 
            ||
| 26 | protected $popoverTitle = null;  | 
            ||
| 27 | |||
| 28 | /**  | 
            ||
| 29 | * Get popup title  | 
            ||
| 30 | *  | 
            ||
| 31 | * @return string  | 
            ||
| 32 | */  | 
            ||
| 33 | public function getPopoverTitle()  | 
            ||
| 37 | |||
| 38 | /**  | 
            ||
| 39 | * Set popup title  | 
            ||
| 40 | *  | 
            ||
| 41 | * @param string $popoverTitle  | 
            ||
| 42 | * @return $this  | 
            ||
| 43 | */  | 
            ||
| 44 | public function setPopoverTitle($popoverTitle)  | 
            ||
| 49 | |||
| 50 | public function getSchemaDataDefaults()  | 
            ||
| 65 | }  | 
            ||
| 66 |