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

Method createExampleComponent

examples/menu/panel/MainContainer.mjs:54–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 }
53
54 createExampleComponent() {
55 return Neo.create({
56 module: Menu,
57
58 listConfig: {
59 displayField: 'text'
60 },
61
62 listItems: [{
63 iconCls: 'fa fa-user',
64 id : 1,
65 text : 'Item 1'
66 }, {
67 iconCls: 'fa fa-home',
68 id : 2,
69 text : 'Group 1',
70 items : [{
71 iconCls: 'fa fa-home',
72 id : 6,
73 text : 'Item 1'
74 }, {
75 iconCls: 'fa fa-home',
76 id : 7,
77 text : 'Item 2'
78 }, {
79 iconCls: 'fa fa-home',
80 id : 8,
81 text : 'Item 3'
82 }]
83 }, {
84 iconCls: 'fa fa-cog',
85 id : 3,
86 text : 'Item 2'
87 }, {
88 iconCls: 'far fa-calendar',
89 id : 4,
90 text : 'Item 3'
91 }, {
92 iconCls: 'far fa-clock',
93 id : 5,
94 text : 'Group 2',
95 items : [{
96 iconCls: 'fa fa-clock',
97 id : 9,
98 text : 'Item 1'
99 }, {
100 iconCls: 'fa fa-clock',
101 id : 10,
102 text : 'Item 2'
103 }, {
104 iconCls: 'fa fa-clock',
105 id : 11,
106 text : 'Group 1',
107 items : [{
108 iconCls: 'far fa-clock',
109 id : 12,
110 text : 'Item 1'
111 }, {

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected