Skip to content

Commit

Permalink
rename tableResponsive to pgResponsive
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev committed Nov 13, 2023
1 parent f0f54ad commit e69a485
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
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

0 comments on commit e69a485

Please sign in to comment.