let data = [
{iconName:"icon-dashboard",itemName:"DASHBOARD"},
{iconName:"icon-dashboard",itemName:"AGENT"},
{iconName:"icon-dashboard",itemName:"MY CRUISE"},
{iconName:"icon-dashboard",itemName:"HELP"}
];
export default class NavList {
constructor(){
}
display(){
return(`
${data.map(item =>{
console.log(item);
return new NavItem(item).display();
})}
import './navList.less';
import NavItem from "../compons/navItem/navItem";
let data = [ {iconName:"icon-dashboard",itemName:"DASHBOARD"}, {iconName:"icon-dashboard",itemName:"AGENT"}, {iconName:"icon-dashboard",itemName:"MY CRUISE"}, {iconName:"icon-dashboard",itemName:"HELP"} ];
export default class NavList { constructor(){ } display(){ return(`