Skip to content

Commit

Permalink
Merge pull request #1879 from rappasoft/development
Browse files Browse the repository at this point in the history
Development to Develop
  • Loading branch information
lrljoe authored Aug 23, 2024
2 parents e66bb31 + 8e33fba commit 7bddef4
Show file tree
Hide file tree
Showing 40 changed files with 1,290 additions and 143 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,32 @@

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

## [v3.4.11] - 2024-08-23
### New Features
- Add setIconLeft/setIconRight for Actions by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1877

## [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
- Fix superfluous bulk actions tr > by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1868

## [v3.4.8] - 2024-08-18
### New Features
- Add an event dispatch for Filter Was Set when filterComponents is updated by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1861

## [v3.4.7] - 2024-08-18
### Bug Fixes
- Correct a locked property that is entangled in js, and add comments around some key properties to prevent reoccurrence by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1859

## [v3.4.6] - 2024-08-15
### New Features
- Column Features - deselectedIf/selectedIf by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1846
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 7bddef4

Please sign in to comment.