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

Method createExampleComponent

examples/component/timer/MainContainer.mjs:39–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 createExampleComponent() {
40 return Neo.create({
41 module: Container,
42 style : {
43 overflow : 'auto',
44 maxHeight: '100%'
45 },
46 items : [{
47 html: '<h1>Configurable</h1>',
48 style: {textAlign: 'center'}
49 }, {
50 module : Timer,
51 duration : '20s',
52 flag : 'timer-component',
53 dimensions: '8rem'
54 }]
55 })
56 }
57
58 /**
59 * @param {String} config

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected