diff --git a/src/Show/Field.php b/src/Show/Field.php index 77c2a3c..110fc8b 100755 --- a/src/Show/Field.php +++ b/src/Show/Field.php @@ -56,6 +56,8 @@ class Field implements Renderable */ protected $escape = true; + protected $help; + /** * Field value. * @@ -702,6 +704,7 @@ HTML; return [ 'content' => $this->value, 'escape' => $this->escape, + 'help' => $this->help, 'label' => $this->getLabel(), 'wrapped' => $this->border, 'width' => $this->width, @@ -772,4 +775,11 @@ HTML; return format_byte($value, $dec); }); } + + public function help($text = '', $icon = 'feather icon-help-circle') + { + $this->help = compact('text', 'icon'); + + return $this; + } }