index.js
function createListBoxMixin({ id, field }) {
        return this.createObject({
            qInfo: {
                qType: 'ListObject'
            },
            qListObjectDef: {
                qStateName: '$',
                qLibraryId: undef.if(id, ''),
                qDef: {
                    qFieldDefs: undef.if(field, [field], [])
                },
                qInitialDataFetch: [{
                    qTop: 0,
                    qLeft: 0,
                    qHeight: 5,
                    qWidth: 1
                }]
            }
        }).then((object) => {
            return object.getLayout();
        })
    }
function createListBoxMixin({ id, field }) {
        return this.createObject({
            qInfo: {
                qType: 'ListObject'
            },
            qListObjectDef: {
                qStateName: '$',
                qLibraryId: undef.if(id, ''),
                qDef: {
                    qFieldDefs: undef.if(field, [field], [])
                },
                qInitialDataFetch: [{
                    qTop: 0,
                    qLeft: 0,
                    qHeight: 5,
                    qWidth: 1
                }]
            }
        }).then((object) => {
            return object.getLayout();
        })
    }
function createListBoxMixin ( { id , field } ) { return this . createObject ( { qInfo : { qType : 'ListObject' } , qListObjectDef : { qStateName : '$' , qLibraryId : undef . if ( id , '' ) , qDef : { qFieldDefs : undef . if ( field , [ field ] , [ ] ) } , qInitialDataFetch : [ { qTop : 0 , qLeft : 0 , qHeight : 5 , qWidth : 1 } ] } } ) . then ( ( object ) => { return object . getLayout ( ) ; } ) }
Creates a list box on a field or on a dimension
Creates a list box on a field or on a dimension