Skip to content

Commit

Permalink
examples.table.nestedRecordFields: MainContainer => Viewport #6290
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiu committed Jan 25, 2025
1 parent 2afea9c commit e2c071c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import Button from '../../../src/button/Base.mjs';
import MainContainerStateProvider from './MainContainerStateProvider.mjs';
import TableContainer from '../../../src/table/Container.mjs';
import Viewport from '../../../src/container/Viewport.mjs';
import BaseViewport from '../../../src/container/Viewport.mjs';
import Button from '../../../src/button/Base.mjs';
import TableContainer from '../../../src/table/Container.mjs';
import ViewportStateProvider from './ViewportStateProvider.mjs';

/**
* @class Neo.examples.table.nestedRecordFields.MainContainer
* @class Neo.examples.table.nestedRecordFields.Viewport
* @extends Neo.container.Viewport
*/
class MainContainer extends Viewport {
class Viewport extends BaseViewport {
static config = {
/**
* @member {String} className='Neo.examples.table.nestedRecordFields.MainContainer'
* @member {String} className='Neo.examples.table.nestedRecordFields.Viewport'
* @protected
*/
className: 'Neo.examples.table.nestedRecordFields.MainContainer',
className: 'Neo.examples.table.nestedRecordFields.Viewport',
/**
* @member {Object|String} layout='fit'
*/
layout: 'fit',
/**
* @member {Neo.state.Provider} stateProvider=MainContainerStateProvider
* @member {Neo.state.Provider} stateProvider=ViewportStateProvider
*/
stateProvider: MainContainerStateProvider,
stateProvider: ViewportStateProvider,
/**
* @member {Object} style={padding:'20px'}
*/
Expand Down Expand Up @@ -116,4 +116,4 @@ class MainContainer extends Viewport {
}
}

export default Neo.setupClass(MainContainer);
export default Neo.setupClass(Viewport);
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import Store from '../../../src/data/Store.mjs';
const dataSymbol = Symbol.for('data');

/**
* @class Neo.examples.table.nestedRecordFields.MainContainerStateProvider
* @class Neo.examples.table.nestedRecordFields.ViewportStateProvider
* @extends Neo.state.Provider
*/
class MainContainerStateProvider extends StateProvider {
class ViewportStateProvider extends StateProvider {
static config = {
/**
* @member {String} className='Neo.examples.table.nestedRecordFields.MainContainerStateProvider'
* @member {String} className='Neo.examples.table.nestedRecordFields.ViewportStateProvider'
* @protected
*/
className: 'Neo.examples.table.nestedRecordFields.MainContainerStateProvider',
className: 'Neo.examples.table.nestedRecordFields.ViewportStateProvider',
/**
* @member {Object} stores
*/
Expand Down Expand Up @@ -59,4 +59,4 @@ class MainContainerStateProvider extends StateProvider {
}
}

export default Neo.setupClass(MainContainerStateProvider);
export default Neo.setupClass(ViewportStateProvider);
6 changes: 3 additions & 3 deletions examples/table/nestedRecordFields/app.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import MainContainer from './MainContainer.mjs';
import Viewport from './Viewport.mjs';

export const onStart = () => Neo.app({
mainView: MainContainer,
mainView: Viewport,
name : 'Neo.examples.table.nestedRecordFields'
});
})

0 comments on commit e2c071c

Please sign in to comment.