Skip to content

Commit

Permalink
Rename Getter Functions
Browse files Browse the repository at this point in the history
  • Loading branch information
malzariey committed Jan 30, 2024
1 parent 598770d commit 3a8faec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions resources/views/components/table-repeater.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
'2xl' => 'break-point-2xl',
default => 'break-point-md',
},
'overflow-auto' => $getScrollable()
'overflow-auto' => $shouldBeScrollable()
]) }}
>
@if (count($containers) || $emptyLabel !== false)
Expand Down Expand Up @@ -81,7 +81,7 @@
}
])
@if ($header['width'])
style="{{$getStrictWidth()? 'min-width':'width'}}: {{ $header['width'] }}"
style="{{$shouldStrictWidth()? 'min-width':'width'}}: {{ $header['width'] }}"
@endif
>
{{ $header['label'] }}
Expand Down Expand Up @@ -155,7 +155,7 @@ class="filament-table-repeater-row md:divide-x md:divide-gray-950/5 dark:md:divi
$columnWidths &&
isset($columnWidths[$cellKey])
)
style="{{$getStrictWidth()? 'min-width':'width'}}: {{ $columnWidths[$cellKey] }}"
style="{{$shouldStrictWidth()? 'min-width':'width'}}: {{ $columnWidths[$cellKey] }}"
@endif
>
{{ $cell }}
Expand Down
4 changes: 2 additions & 2 deletions src/Components/TableRepeater.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ public function getBreakPoint(): string
{
return $this->breakPoint;
}
public function getStrictWidth(): string
public function shouldStrictWidth(): bool
{
return $this->evaluate($this->strictWidth);
}

public function getScrollable(): string
public function shouldBeScrollable(): bool
{
return $this->evaluate($this->scrollable);
}
Expand Down

0 comments on commit 3a8faec

Please sign in to comment.