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

[4.x] Rename tableResponsive to pgResponsive #1254

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ pnpm-lock.yaml
tmp/
dist/powergrid.js.LICENSE.txt
.env
package-lock.json
2 changes: 1 addition & 1 deletion dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/powergrid.js": "/powergrid.js?id=93c38e294a5e554c3ab33ee8983ab80a",
"/powergrid.js": "/powergrid.js?id=12845f7bfed60eee6002a86bd01b05ea",
"/tom-select.css": "/tom-select.css?id=df1e7c79b09161e80f1904c1f992e882",
"/powergrid.css": "/powergrid.css?id=efa12b9afdedc01efda000997c2e007c"
}
2 changes: 1 addition & 1 deletion dist/powergrid.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions resources/js/components/index.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import pgToggleable from './pg-toggleable'
import pgFlatpickr from "./pg-flatpickr";
import pgEditable from "./pg-editable";
import pgCopyToClipboard from "./pg-copy-to-clipboard";
import tableResponsive from './tableResponsive';
import pgCopyToClipboard from "./pg-copy-to-clipboard";
import pgResponsive from './pgResponsive';

window.pgToggleable = pgToggleable
window.pgFlatpickr = pgFlatpickr
window.pgEditable = pgEditable
window.tableResponsive = tableResponsive
window.pgResponsive = pgResponsive

document.addEventListener('alpine:init', () => {
window.Alpine.data('pgToggleable', pgToggleable)
window.Alpine.data('pgFlatpickr', pgFlatpickr)
window.Alpine.data('phEditable', pgEditable)
window.Alpine.data('tableResponsive', tableResponsive)
window.Alpine.data('pgResponsive', pgResponsive)
window.Alpine.plugin(pgCopyToClipboard)
})

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table-base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'theme' => null,
'readyToLoad' => false,
])
<div @isset($this->setUp['responsive']) x-data="tableResponsive" @endisset>
<div @isset($this->setUp['responsive']) x-data="pgResponsive" @endisset>
<table
class="table power-grid-table {{ $theme->tableClass }}"
style="{{ $theme->tableStyle }}"
Expand Down
Loading