Skip to content

Releases: Power-Components/livewire-powergrid

v2.2.1

19 Jan 21:37
Compare
Choose a tag to compare

🛠️ Fix

  • Fix class attribute on action button

v2.2.0

19 Jan 15:26
6a3cf6e
Compare
Choose a tag to compare

v2.1.2

14 Jan 23:13
Compare
Choose a tag to compare

🛠️ Fix

showToggleColumns() mess with #218

v2.1.1

14 Jan 19:13
Compare
Choose a tag to compare

🛠️ Fix

action parameters when entry is null

v2.1.0

14 Jan 10:36
Compare
Choose a tag to compare

🛠️ Fix

withSum() & withAvg() not working for calculated data Bug Fixed. #222
withCount should only count "valid" records #226
action parameters does not work with zero #224

Added

Delete After Download export option (default true) #223

 public function setUp(): void
    {
        // ...
        ->showExportOption('download', ['excel', 'csv'], ['deleteAfterDownload' => true]);

v2.0.1

12 Jan 19:51
Compare
Choose a tag to compare

🛠️ Fix

#220 - undefined $row when defining a single button in header method

v2.0.0

01 Jan 21:54
Compare
Choose a tag to compare

Deprecation

In this version, AlpineJs ^3 is a requirement - deprecation to v2

Upgrade From V1


🛠️ Fix

  • powergrid:create - #191, #194, #199 (create based on default App\Models directory. enum field and directory)

  • layout improvements for Bootstrap5

  • resetPage() order

Added

New Contributors

Full Changelog: v1.5.1...v2.0.0

v1.5.1

04 Dec 19:44
2fc4279
Compare
Choose a tag to compare

🛠️ Fixes

🔥 Translations

Added

New Contributors

Full Changelog: v1.5.0...v1.5.1

v1.5.0

27 Nov 13:51
114534f
Compare
Choose a tag to compare

🛠️ Fixes

New Contributors

Full Changelog: v1.4.7...v1.5.0

Notes:

  • With Sort String Number (SortField with +0) - By default it is disabled, but you can enable it by changing the property: $withSortStringNumber - #111
  • Update message is disabled by default: bool $showUpdateMessages

image

  • Prefix in sorting with join is ignored by default. bool $ignoreTablePrefix = true avoiding problems with table names with joins when you need to remove them
  • Table prefix has been removed: sortable(string $tableWithColumn = ''). Now is sortable()

Before:

Column::add()
     ->title('Category')
     ->field('category_name')
     ->sortable('categories.name'),

After:

Column::add()
     ->title('Category')
     ->field('category_name')
     ->sortable(),
  • Table prefix has been removed: searchable(string $tableWithColumn = ''). Now is searchable()

Before:

Column::add()
     ->title('Category')
     ->field('category_name')
     ->searchable('categories.name'),

After:

Column::add()
     ->title('ID')
     ->field('id')
     ->searchable(),
  • Add dataField extra parameters do field method.
Column::add()
     ->title('Category')
     ->field('category_name', 'categories.name')
     ->searchable(),

v1.4.7

17 Nov 00:07
Compare
Choose a tag to compare

🛠️ Fixes

issues:

  • search problem when joining multiple tables #129
  • more issues with ambiguous columns when using join #111
  • fix action method on action #128
  • exporting with join sortable.

good practices with join

  1. SortField and primaryKey values:
    public string $sortField = 'dishes.id';
    public string $primaryKey = 'dishes.id';
  1. Method addColumns:
     ->addColumn('dishes.name', function (Dish $dish) {
           return $dish->name;
      })
  1. Method columns;
      Column::add()
          ->title(__('Name'))
          ->field('dishes.name')