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

Method createExampleComponent

examples/button/split/MainContainer.mjs:119–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 }
118
119 createExampleComponent() {
120 return Neo.create({
121 module : SplitButton,
122 iconCls: 'fa fa-home',
123 text : 'Hello World',
124 ui : 'ghost',
125
126 handler: data => {
127 console.log('button click =>', data.component.id)
128 },
129
130 splitButtonHandler: data => {
131 console.log('split button click =>', data.component.id)
132 }
133 })
134 }
135}
136
137export default Neo.setupClass(MainContainer);

Callers

nothing calls this directly

Calls 2

createMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected