Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.3.0 - Docs Update #1768

Merged
merged 24 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
272457d
Adjust for HTML Columns
lrljoe Jun 6, 2024
8b3e3cf
Update ChangeLog and SP
lrljoe Jun 6, 2024
2cd6684
fix: Apply cursor pointer only on clickable columns when using Bootst…
MP70 Jun 29, 2024
f5dba56
Fix styling
lrljoe Jun 29, 2024
52ad60b
Fix hide bulk actions when empty not reflecting in frontend (#1747)
lrljoe Jun 29, 2024
ce95a70
Change Return Type for attributes() to static (#1749)
lrljoe Jul 1, 2024
5c40472
Switch to using Composer\InstalledVersions for AboutCommand to reduce…
lrljoe Jul 1, 2024
119401b
Two improvements to improve typehinting, migrate to larastan/larastan…
lrljoe Jul 1, 2024
ea2c8fc
Add ArrayColumn (BETA) (#1751)
lrljoe Jul 1, 2024
2acac1b
Always hide bulk actions option (#1752)
lrljoe Jul 1, 2024
318bdeb
Merge branch 'master' into development
lrljoe Jul 1, 2024
3633743
Optionally disable count for simple pagination (#1755)
lrljoe Jul 1, 2024
f0cfe56
Update ChangeLog For 3.2.8 Release (#1754)
lrljoe Jul 2, 2024
1adebfb
Add release date
lrljoe Jul 3, 2024
13fe6a5
Fix phpstan unescaped |
lrljoe Jul 3, 2024
51f4c94
Fix missing typehints (#1757)
lrljoe Jul 3, 2024
37691f9
Add CountColumn, simpler adding of WithCounts, With (#1761)
lrljoe Jul 10, 2024
799ccfd
Add Option to Retain Selected when Searching/Filtering (#1762)
lrljoe Jul 10, 2024
220d6da
Add WireLink Column (#1763)
lrljoe Jul 11, 2024
0cc137e
Merge branch 'master' into development
lrljoe Jul 11, 2024
2593615
Fix styling
lrljoe Jul 11, 2024
16314ac
Update ChangeLog
lrljoe Jul 11, 2024
026d3fb
Merge branch 'master' into development
lrljoe Jul 11, 2024
11fbd70
Adjust column documentation (#1767)
lrljoe Jul 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

All notable changes to `laravel-livewire-tables` will be documented in this file

## [v3.3.0] - 2024-07-12
## [v3.3.0] - 2024-07-11
### New Features
- Add new columns (ArrayColumn, AvgColumn, CountColumn, SumColumn) by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1761
- Add new column WireLinkColumn by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1763
- Add Option to Retain Selected when Searching/Filtering by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1762

## [v3.2.8] - 2024-07-03
### Bug Fixes
Expand Down
20 changes: 18 additions & 2 deletions docs/column-types/array_column.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Array Columns (beta)
weight: 1
weight: 2
---

Array columns provide an easy way to work with and display an array of data from a field.
Expand All @@ -19,4 +19,20 @@ You may define the default/empty value using the "emptyValue" method
```
ArrayColumn::make('notes', 'name')
->emptyValue('Unknown'),
```
```

Please also see the following for other available methods:
<ul>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/available-methods">Available Methods</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/column-selection">Column Selection</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/secondary-header">Secondary Header</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer">Footer</a>
</li>
</ul>
20 changes: 18 additions & 2 deletions docs/column-types/avg_column.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Avg Columns (beta)
weight: 2
weight: 3
---

Avg columns provide an easy way to display the "Average" of a field on a relation.
Expand All @@ -11,4 +11,20 @@ Avg columns provide an easy way to display the "Average" of a field on a relatio
->sortable(),
```

The "sortable()" callback can accept a callback, or you can use the default behaviour, which calculates the correct field to sort on.
The "sortable()" callback can accept a callback, or you can use the default behaviour, which calculates the correct field to sort on.

Please also see the following for other available methods:
<ul>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/available-methods">Available Methods</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/column-selection">Column Selection</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/secondary-header">Secondary Header</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer">Footer</a>
</li>
</ul>
18 changes: 17 additions & 1 deletion docs/column-types/boolean_columns.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Boolean Columns
weight: 3
weight: 4
---

Boolean columns are good if you have a column type that is a true/false, or 0/1 value.
Expand Down Expand Up @@ -79,3 +79,19 @@ If you would like the BooleanColumn to display a plain Yes/No, you can set:
BooleanColumn::make('Active')
->yesNo()
```

Please also see the following for other available methods:
<ul>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/available-methods">Available Methods</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/column-selection">Column Selection</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/secondary-header">Secondary Header</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer">Footer</a>
</li>
</ul>
9 changes: 8 additions & 1 deletion docs/column-types/button_group_column.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Button Group Columns
weight: 4
weight: 5
---

Button group columns let you provide an array of LinkColumns to display in a single cell.
Expand Down Expand Up @@ -32,3 +32,10 @@ ButtonGroupColumn::make('Actions')
}),
]),
```


Please also see the following for other available methods:
- [https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/available-methods](Available Methods)
- [https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/column-selection](Column Selection)
- [https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/secondary-header](Secondary Header)
- [https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer](Footer)
18 changes: 17 additions & 1 deletion docs/column-types/color_columns.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Color Columns
weight: 5
weight: 6
---

Color columns provide an easy way to a Color in a Column
Expand Down Expand Up @@ -39,3 +39,19 @@ You may also specify attributes to use on the div displaying the color, to adjus
];
}),
```

Please also see the following for other available methods:
<ul>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/available-methods">Available Methods</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/column-selection">Column Selection</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/secondary-header">Secondary Header</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer">Footer</a>
</li>
</ul>
17 changes: 16 additions & 1 deletion docs/column-types/component_column.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Component Columns
weight: 6
weight: 7
---

Component columns let you specify a component name and attributes and provides the column value to the slot.
Expand All @@ -26,3 +26,18 @@ ComponentColumn::make('E-mail', 'email')
]),
```

Please also see the following for other available methods:
<ul>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/available-methods">Available Methods</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/column-selection">Column Selection</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/secondary-header">Secondary Header</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer">Footer</a>
</li>
</ul>
20 changes: 18 additions & 2 deletions docs/column-types/count_column.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Count Columns (beta)
weight: 7
weight: 8
---

Count columns provide an easy way to display the "Count" of a relation.
Expand All @@ -11,4 +11,20 @@ Count columns provide an easy way to display the "Count" of a relation.
->sortable(),
```

The "sortable()" callback can accept a callback, or you can use the default behaviour, which calculates the correct field to sort on.
The "sortable()" callback can accept a callback, or you can use the default behaviour, which calculates the correct field to sort on.

Please also see the following for other available methods:
<ul>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/available-methods">Available Methods</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/column-selection">Column Selection</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/secondary-header">Secondary Header</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer">Footer</a>
</li>
</ul>
17 changes: 16 additions & 1 deletion docs/column-types/date_columns.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Date Columns
weight: 8
weight: 9
---

Date columns provide an easy way to display dates in a given format, without having to use repetitive format() methods or partial views.
Expand All @@ -26,3 +26,18 @@ DateColumn::make('Last Charged', 'last_charged_at')
->emptyValue('Not Found'),
```

Please also see the following for other available methods:
<ul>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/available-methods">Available Methods</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/column-selection">Column Selection</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/secondary-header">Secondary Header</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer">Footer</a>
</li>
</ul>
18 changes: 17 additions & 1 deletion docs/column-types/image_columns.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Image Columns
weight: 9
weight: 10
---

Image columns provide a way to display images in your table without having to use `format()` or partial views:
Expand All @@ -24,3 +24,19 @@ ImageColumn::make('Avatar')
'alt' => $row->name . ' Avatar',
]),
```

Please also see the following for other available methods:
<ul>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/available-methods">Available Methods</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/column-selection">Column Selection</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/secondary-header">Secondary Header</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer">Footer</a>
</li>
</ul>
18 changes: 17 additions & 1 deletion docs/column-types/link_columns.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Link Columns
weight: 10
weight: 11
---

Link columns provide a way to display HTML links in your table without having to use `format()` or partial views:
Expand All @@ -22,3 +22,19 @@ LinkColumn::make('Action')
'alt' => $row->name . ' Avatar',
]),
```

Please also see the following for other available methods:
<ul>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/available-methods">Available Methods</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/column-selection">Column Selection</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/secondary-header">Secondary Header</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer">Footer</a>
</li>
</ul>
29 changes: 28 additions & 1 deletion docs/column-types/livewire_component_column.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
---
title: Livewire Component (beta)
weight: 11
weight: 12
---

Livewire Component Columns allow for the use of a Livewire Component as a Column.

This is **not recommended** as due to the nature of Livewire, it becomes inefficient at scale.

## component
```
LivewireComponentColumn::make('Action')
->title(fn($row) => 'Edit')
->component('PathToLivewireComponent'),

```

Please also see the following for other available methods:
<ul>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/available-methods">Available Methods</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/column-selection">Column Selection</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/secondary-header">Secondary Header</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer">Footer</a>
</li>
</ul>
31 changes: 31 additions & 0 deletions docs/column-types/standard_column.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: Standard Column
weight: 1
---

A standard Column has a multitude of different options, making it simple for you to display your data, as documented below:

<ul>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/creating-columns">Creating Columns</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/relationships">Relationships</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/available-methods">Available Methods</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/column-selection">Column Selection</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/secondary-header">Secondary Header</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer">Footer</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/anonymous_columns">Anonymous Columns</a>
</li>

</ul>
20 changes: 18 additions & 2 deletions docs/column-types/sum_column.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Sum Columns (beta)
weight: 12
weight: 13
---

Sum columns provide an easy way to display the "Sum" of a field on a relation.
Expand All @@ -11,4 +11,20 @@ Sum columns provide an easy way to display the "Sum" of a field on a relation.
->sortable(),
```

The "sortable()" callback can accept a callback, or you can use the default behaviour, which calculates the correct field to sort on.
The "sortable()" callback can accept a callback, or you can use the default behaviour, which calculates the correct field to sort on.

Please also see the following for other available methods:
<ul>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/available-methods">Available Methods</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/column-selection">Column Selection</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/secondary-header">Secondary Header</a>
</li>
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer">Footer</a>
</li>
</ul>
Loading
Loading