MCPcopy Create free account
hub / github.com/neomjs/neo / createExampleComponent

Method createExampleComponent

examples/tree/MainContainer.mjs:81–118  ·  view source on GitHub ↗

* @returns {*}

()

Source from the content-addressed store, hash-verified

79 * @returns {*}
80 */
81 createExampleComponent() {
82 return Neo.ntype({
83 ntype : 'container',
84 layout: {ntype: 'hbox', align: 'stretch'},
85 items : [{
86 module : ApiTreeList,
87 draggable: true,
88 height : 800,
89 width : 400,
90
91 dragZoneConfig: {
92 dropZoneIdentifier: {
93 cls: ['neo-example-dropzone']
94 }
95 }
96 }, {
97 module: Panel,
98
99 containerConfig: {
100 cls : ['neo-example-dropzone'],
101 droppable: true
102 },
103
104 headers: [{
105 dock : 'top',
106 items: [{
107 ntype: 'label',
108 text : 'DropZone'
109 }]
110 }],
111
112 style: {
113 marginLeft: '2em',
114 minWidth : '15em'
115 }
116 }]
117 })
118 }
119
120 /**
121 * @param {Object} opts

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected