We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c85c2ac commit 5bbc134Copy full SHA for 5bbc134
1 file changed
src/list/Base.mjs
@@ -210,20 +210,19 @@ class Base extends Component {
210
const item = {
211
tag : 'li',
212
cls : [me.itemCls],
213
- html : me.createItemContent(record),
214
id : me.getItemId(record[me.getKeyProperty()]),
215
tabIndex: -1
216
};
217
218
- item[typeof itemContent === 'string' ? 'html' : 'vdom'] = itemContent;
+ item[typeof itemContent === 'string' ? 'html' : 'cn'] = itemContent;
219
220
return item;
221
}
222
223
/**
224
* Override this method for custom renderers
225
* @param {Object} record
226
- * @returns {Object|String} Either an vdom object or a html string
+ * @returns {Object[]|Object|String} Either an vdom cn array or object, or a html string
227
*/
228
createItemContent(record) {
229
let me = this,
0 commit comments