Allow list items to specify a wrapper class

This commit is contained in:
Toby Zerner 2015-05-02 08:46:52 +09:30
parent e3110454ae
commit 2d30c8f010

View File

@ -17,5 +17,5 @@ export default function listItems(array, noWrap) {
}
});
return newArray.map(item => [(noWrap && !isSeparator(item)) ? item : m('li', {className: (item.props && item.props.wrapperClass) || (item.component && item.component.wrapperClass) || ''}, item), ' ']);
return newArray.map(item => [(noWrap && !isSeparator(item)) ? item : m('li', {className: item.wrapperClass || (item.props && item.props.wrapperClass) || (item.component && item.component.wrapperClass) || ''}, item), ' ']);
};