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

Method createExampleComponent

examples/popover/MainContainer.mjs:23–51  ·  view source on GitHub ↗

* @returns {*}

()

Source from the content-addressed store, hash-verified

21 * @returns {*}
22 */
23 createExampleComponent() {
24 return Neo.ntype({
25 ntype : 'container',
26 height: '30%',
27 layout: {ntype: 'vbox', align: 'center', pack: 'center'},
28 items : [{
29 module: Component,
30 height: 10
31 }, {
32 module : Button,
33 width : 200,
34 text : 'Click Me',
35 plugins: [{
36 module: PopoverPlugin,
37 align : 'bc-tc',
38 items : [{
39 ntype : 'panel',
40 headers: [{
41 dock: 'top',
42 html: 'HEADER'
43 }],
44 items : [{
45 html: 'This is a comment about the button'
46 }]
47 }]
48 }]
49 }]
50 })
51 }
52}
53
54export default Neo.setupClass(MainContainer);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected