示例#1
0
文件: Dropdown.php 项目: slakbal/menu
 /**
  * Create divider item
  * 
  * @access public
  * @param array $attributes (default: [])
  * @return $this
  */
 public function divider(array $attributes = [])
 {
     $items = $this->get('items');
     $items[] = Divider::make($attributes);
     $this->set('items', $items);
     return $this;
 }
示例#2
0
文件: Builder.php 项目: slakbal/menu
 /**
  * Add divider item tor menu collection
  * 
  * @access public
  * @return $this
  */
 public function divider(array $attributes = [])
 {
     $item = Divider::make($attributes);
     $this->items[] = $item;
     return $this;
 }