Preparing column editor for backend requests, remove simple col editor and reuse one for both cases
This commit is contained in:
@@ -14,11 +14,10 @@
|
||||
@push('scripts')
|
||||
<script>
|
||||
ready(function() {
|
||||
// TODO we need a better editor with ajax for adding, also with ordering
|
||||
app.ColumnEditorAdvanced('#column-editor', {
|
||||
app.ColumnEditor('#column-editor', {
|
||||
name: 'columns',
|
||||
route: {!! toJSON($table->draftUpdateRoute) !!},
|
||||
initialColumns: {!! toJSON($columns) !!},
|
||||
xColumns: {!! toJSON($columns) !!},
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user