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

Method createExampleComponent

examples/button/effect/MainContainer.mjs:183–196  ·  view source on GitHub ↗

* @returns {Neo.component.Base}

()

Source from the content-addressed store, hash-verified

181 * @returns {Neo.component.Base}
182 */
183 createExampleComponent() {
184 return Neo.create({
185 module : EffectButton,
186 badgeText: 'Badge',
187 flex : 'none',
188 handler : data => console.log('button click =>', data.component.id),
189 height : 50,
190 iconCls : 'fa fa-home',
191 style : {marginBottom: '1500px', marginTop: '500px'},
192 text : 'Hello World',
193 ui : 'primary',
194 width : 150
195 })
196 }
197
198 /**
199 * @param {String} config

Callers

nothing calls this directly

Calls 2

createMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected