Skip to content

Commit e456ee6

Browse files
authored
Move Placeholder Blade Config backwards
1 parent cef3b30 commit e456ee6

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

src/Traits/Configuration/LoadingPlaceholderConfiguration.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,12 @@ public function setLoadingPlaceholderContent(string $content): self
3131

3232
return $this;
3333
}
34+
35+
public function setLoadingPlaceholderBlade(string $customBlade): self
36+
{
37+
$this->loadingPlaceholderBlade = $customBlade;
38+
39+
return $this;
40+
}
41+
3442
}

src/Traits/Styling/Configuration/LoadingPlaceholderStylingConfiguration.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,23 @@ trait LoadingPlaceholderStylingConfiguration
66
{
77
public function setLoadingPlaceHolderAttributes(array $attributes): self
88
{
9-
$this->loadingPlaceHolderAttributes = $attributes;
9+
$this->setCustomAttributes('loadingPlaceHolderAttributes', $attributes);
1010

1111
return $this;
1212
}
1313

1414
public function setLoadingPlaceHolderIconAttributes(array $attributes): self
1515
{
16-
$this->loadingPlaceHolderIconAttributes = $attributes;
16+
$this->setCustomAttributes('loadingPlaceHolderIconAttributes', $attributes);
1717

1818
return $this;
1919
}
2020

2121
public function setLoadingPlaceHolderWrapperAttributes(array $attributes): self
2222
{
23-
$this->loadingPlaceHolderWrapperAttributes = $attributes;
23+
$this->setCustomAttributes('loadingPlaceHolderWrapperAttributes', $attributes);
2424

2525
return $this;
2626
}
2727

28-
public function setLoadingPlaceholderBlade(string $customBlade): self
29-
{
30-
$this->loadingPlaceholderBlade = $customBlade;
31-
32-
return $this;
33-
}
3428
}

src/Traits/Styling/Helpers/LoadingPlaceholderStylingHelpers.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,26 @@ trait LoadingPlaceholderStylingHelpers
88
{
99
public function getLoadingPlaceholderAttributes(): array
1010
{
11-
return count($this->loadingPlaceHolderAttributes) ? $this->loadingPlaceHolderAttributes : ['default' => true];
11+
return $this->getCustomAttributes(propertyName: 'loadingPlaceHolderAttributes', default: true, classicMode: true);
12+
1213
}
1314

1415
public function getLoadingPlaceHolderIconAttributes(): array
1516
{
16-
return count($this->loadingPlaceHolderIconAttributes) ? $this->loadingPlaceHolderIconAttributes : ['default' => true];
17+
return $this->getCustomAttributes(propertyName: 'loadingPlaceHolderIconAttributes', default: true, classicMode: true);
18+
1719
}
1820

1921
public function getLoadingPlaceHolderWrapperAttributes(): array
2022
{
21-
return count($this->loadingPlaceHolderWrapperAttributes) ? $this->loadingPlaceHolderWrapperAttributes : ['default' => true];
23+
return $this->getCustomAttributes(propertyName: 'loadingPlaceHolderWrapperAttributes', default: true, classicMode: true);
24+
2225
}
2326

2427
public function getLoadingPlaceHolderCellAttributes(): array
2528
{
26-
return count($this->loadingPlaceHolderCellAttributes) ? $this->loadingPlaceHolderCellAttributes : ['default' => true];
29+
return $this->getCustomAttributes(propertyName: 'loadingPlaceHolderCellAttributes', default: true, classicMode: true);
30+
2731
}
32+
2833
}

0 commit comments

Comments
 (0)