Skip to content

Commit

Permalink
support parentStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberPunkCodes authored Jun 8, 2024
1 parent 96e1592 commit 8666ebe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Components/Moment.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,18 @@ class Moment extends Component
*/
public $local;

public $parentStyle = '';

/**
* Create a new component instance.
*/
public function __construct(DateTimeInterface $date, string $format = 'm-d-Y g:i a', bool $human = false, $local = null)
public function __construct(DateTimeInterface $date, string $format = 'm-d-Y g:i a', bool $human = false, $local = null, $parentStyle = '')
{
$this->date = Carbon::instance($date);
$this->format = $format;
$this->human = $human;
$this->local = $local;
$this->parentStyle = $parentStyle;
}

/**
Expand Down

0 comments on commit 8666ebe

Please sign in to comment.