Skip to content

Commit

Permalink
v3.4.10 (#1874)
Browse files Browse the repository at this point in the history
## [v3.4.10] - 2024-08-23
### Bug Fixes
- Default UseComputedProperties to True to default to new views by @lrljoe in #1873
- Allow Single Date DateRangeFilter by @lrljoe in #1872
- Allow clearing of DateRangeFilter by Text Box by @lrljoe in #1875

### Docs
- Docs Update by @lrljoe in #1876
  • Loading branch information
lrljoe authored Aug 23, 2024
1 parent 1fd8bb2 commit 0c0047b
Show file tree
Hide file tree
Showing 31 changed files with 1,073 additions and 138 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

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

## [v3.4.10] - 2024-08-23
### Bug Fixes
- Default UseComputedProperties to True to default to new views by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1873
- Allow Single Date DateRangeFilter by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1872
- Allow clearing of DateRangeFilter by Text Box by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1875

### Docs
- Docs Update by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1876

## [v3.4.9] - 2024-08-21
### Bug Fixes
- Default UseComputedProperties to False to allow previously published views to work by default by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1869
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Customising Style
title: Styling
weight: 5
---

Expand Down
14 changes: 13 additions & 1 deletion docs/datatable/available-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@ public function configure(): void
}
```

### useComputedPropertiesDisabled

If you have published the Views **prior to v3.4.5**, and do not wish to remove the published views, then you should add the following call, which will disable the new Computed Properties behaviour. Note that publishing the views is not recommended!

```php
public function configure(): void
{
$this->useComputedPropertiesDisabled();
}
```


## Attributes

Documentation for Data Table Styling/Attributes is now: <a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/styling" aria-label="Documentation for Data Table Styling" >Here</a>
Documentation for Data Table Styling/Attributes is now: [Here](../datatable/styling)

## Offline

Expand Down
5 changes: 3 additions & 2 deletions docs/filter-types/filters-daterange.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function filters(): array
A full list of options is below, please see the Flatpickr documentation for reference as to purpose:
| Config Option | Type | Default | Description |
| ------------- | ------------- | ------------- | ------------- |
| allowInvalidPreload | Boolean | true | Allows the preloading of an invalid date. When disabled, the field will be cleared if the provided date is invalid |
| allowInput | Boolean | false | Allows the user to enter a date directly into the input field. By default, direct entry is disabled. |
| altFormat | String | "F j, Y" | Exactly the same as date format, but for the altInput field |
| altInput | Boolean | false | Show the user a readable date (as per altFormat), but return something totally different to the server. |
Expand Down Expand Up @@ -153,7 +154,7 @@ If using the CDN approach, ensure the following config matches:
Then include the following in your layout:
```html
// Flatpickr Core Script
<script src="https://npmcdn.com/flatpickr" async></script>
<script src="https://npmcdn.com/flatpickr" defer></script>

// Flatpickr Core CSS
<link rel="stylesheet" href="https://npmcdn.com/flatpickr/dist/flatpickr.min.css">
Expand Down Expand Up @@ -193,5 +194,5 @@ You can also add locales using the Flatpickr CDN, ensuring that these are loaded

For example to add German (de), ensure that the following is in the "head" section of your layout, ideally before your app.js
```html
<script src="https://npmcdn.com/flatpickr/dist/l10n/de.js" async></script>
<script src="https://npmcdn.com/flatpickr/dist/l10n/de.js" defer></script>
```
63 changes: 3 additions & 60 deletions docs/footer/available-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,66 +82,9 @@ public function configure(): void
}
```

---

## setFooterTrAttributes

Set any attributes on the footer row element.

```php
public function configure(): void
{
$this->setFooterTrAttributes(function($rows) {
return ['class' => 'bg-gray-100'];
});
}
```

By default, this replaces the default classes on the tr element, if you would like to keep them, set the default flag to true.

```php
public function configure(): void
{
$this->setFooterTrAttributes(function($rows) {
return [
'default' => true,
'class' => 'bg-gray-100'
];
});
}
```

## setFooterTdAttributes

Set any attributes on the footer row cells.

```php
public function configure(): void
{
$this->setFooterTdAttributes(function(Column $column, $rows) {
if ($column->isField('id')) {
return ['class' => 'text-red-500'];
}
});
}
```

By default, this replaces the default classes on the td element, if you would like to keep them, set the default flag to true.

```php
public function configure(): void
{
$this->setFooterTdAttributes(function(Column $column, $rows) {
if ($column->isField('id')) {
return [
'default' => true,
'class' => 'text-red-500'
];
}
});
}
```

---

See also [footer column configuration](../columns/footer).
See also
[footer styling](./styling).
[footer column configuration](../columns/footer).
62 changes: 62 additions & 0 deletions docs/footer/styling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
title: Styling
weight: 2
---

## setFooterTrAttributes

Set any attributes on the footer row element.

```php
public function configure(): void
{
$this->setFooterTrAttributes(function($rows) {
return ['class' => 'bg-gray-100'];
});
}
```

By default, this replaces the default classes on the tr element, if you would like to keep them, set the default flag to true.

```php
public function configure(): void
{
$this->setFooterTrAttributes(function($rows) {
return [
'default' => true,
'class' => 'bg-gray-100'
];
});
}
```

## setFooterTdAttributes

Set any attributes on the footer row cells.

```php
public function configure(): void
{
$this->setFooterTdAttributes(function(Column $column, $rows) {
if ($column->isField('id')) {
return ['class' => 'text-red-500'];
}
});
}
```

By default, this replaces the default classes on the td element, if you would like to keep them, set the default flag to true.

```php
public function configure(): void
{
$this->setFooterTdAttributes(function(Column $column, $rows) {
if ($column->isField('id')) {
return [
'default' => true,
'class' => 'text-red-500'
];
}
});
}
```
Loading

0 comments on commit 0c0047b

Please sign in to comment.