[an error occurred while processing this directive]
[an error occurred while processing this directive]Ext.application({ name: 'Funini', requires: [ 'Ext.Panel', 'Ext.tab.Panel', 'Ext.dataview.NestedList', ], launch: function() { Ext.create("Ext.tab.Panel", { fullscreen: true, tabBarPosition: 'bottom', items: [ { xtype: 'nestedlist', title: 'メンバー一覧', iconCls: 'compose', displayField: 'name', store: { type: 'tree', fields: ['name', 'path',{name: 'leaf', defaultValue: true}], root: { leaf: false }, data: [ { 'name':'か', 'path': 'resources/ka.png', }, { 'name':'かめ', 'path': 'resources/kame.png', }, { 'name':'かもめ', 'path': 'resources/kamome.png', }, ], }, detailCard: { xtype: 'panel', scrollable: true, styleHtmlContent: true, }, getItemTextTpl: function(recordnode) { return '<img src="{path}" style="width: 50px; height: 50px" />{name}'; }, listeners: { itemtap: function(nestedList, list, index, element, post) { var html = '<img src="'; html += post.get('path'); html += '" style="width: 100%; max-width: 300px" />'; this.getDetailCard().setHtml(html); } } } ] }); } });表示結果です。