Wp menu

How to add custom menu like on u site.
{
$admin_bar->add_menu( array(
'id' => 'my-item',
'title' => 'My Item',
'href' => '#',
'meta' => array(
'title' => __('My Item'),
),
));
}
I have this code but i want more menu and submenu?