* @returns {Neo.component.Base}
()
| 125 | * @returns {Neo.component.Base} |
| 126 | */ |
| 127 | createExampleComponent() { |
| 128 | return Neo.create({ |
| 129 | module: Container, |
| 130 | height: 550, |
| 131 | layout: {ntype: 'vbox', align: 'center', pack: 'center'}, |
| 132 | width : 550, |
| 133 | |
| 134 | items: [{ |
| 135 | module : Container, |
| 136 | reference: 'container', |
| 137 | style : {color: 'white', fontSize: '50px', margin: '50px', textAlign: 'center'}, |
| 138 | |
| 139 | layout: { |
| 140 | ntype : 'cube', |
| 141 | rotateX: 194, |
| 142 | rotateY: 213, |
| 143 | rotateZ: 162 |
| 144 | }, |
| 145 | |
| 146 | items: [ |
| 147 | {style: {backgroundColor: 'rgba(255, 0, 0, 0.5)'}, html: 'Front'}, |
| 148 | {style: {backgroundColor: 'rgba( 0, 255, 0, 0.5)'}, html: 'Back'}, |
| 149 | {style: {backgroundColor: 'rgba( 0, 0, 255, 0.5)'}, html: 'Left'}, |
| 150 | {style: {backgroundColor: 'rgba( 0, 255, 255, 0.5)'}, html: 'Right'}, |
| 151 | {style: {backgroundColor: 'rgba(255, 0, 255, 0.5)'}, html: 'Top'}, |
| 152 | {style: {backgroundColor: 'rgba(255, 255, 0, 0.5)'}, html: 'Bottom'} |
| 153 | ] |
| 154 | }, { |
| 155 | module: Toolbar, |
| 156 | flex : 'none', |
| 157 | style : {marginTop: '1em'}, |
| 158 | |
| 159 | itemDefaults: { |
| 160 | ntype : 'button', |
| 161 | handler: 'up.onFaceButtonClick', |
| 162 | style : {marginRight: '.3em'} |
| 163 | }, |
| 164 | |
| 165 | items: [ |
| 166 | {text: 'Front'}, |
| 167 | {text: 'Back'}, |
| 168 | {text: 'Left'}, |
| 169 | {text: 'Right'}, |
| 170 | {text: 'Top'}, |
| 171 | {text: 'Bottom'} |
| 172 | ] |
| 173 | }] |
| 174 | }) |
| 175 | } |
| 176 | |
| 177 | /** |
| 178 | * @param {Object} data |