Telerik Forums
UI for PHP Forum
2 answers
88 views

Hi,

 

it looks like there is a bug in the separator function of the MenuItem class (\Kendo\UI\MenuItem). It uses the variable $value which can't be passed to the function when calling it.

I am using the latest Kendo UI and UI for PHP version (2016.2.714). This is the original source code from MenuItem.php lines 42 to 48:

/**
* Specifies the item should render separator
* @return \Kendo\UI\ContextMenuItem
*/
public function separator() {
    return $this->setProperty('separator', $value);
}

 

I think that should be something like this:

/**
* Specifies the item should render separator
* @param boolean $value
* @return \Kendo\UI\ContextMenuItem
*/
public function separator($value) {
    return $this->setProperty('separator', $value);
}

 

 

Best regards

Thomas

Alex Hajigeorgieva
Telerik team
 answered on 24 Aug 2016
3 answers
61 views
$menu = new \Kendo\UI\Menu('menu');
$menu->addItem(
    new \Kendo\UI\MenuItem('Home')
    ,new \Kendo\UI\MenuItem('Blog')
    ,new \Kendo\UI\MenuItem('Documentation')
    ,new \Kendo\UI\MenuItem('Code Changes')
    ,new \Kendo\UI\MenuItem('Community')
    ,new \Kendo\UI\MenuItem('Pricing')
    ,new \Kendo\UI\MenuItem('Downloads')
    ,new \Kendo\UI\MenuItem('About Us')
);
How do I specify the url to open if that item is selected?
It seems it should be easier than having to add a content("<a href="link.php">Home</a>") to each item shouldn't it?
Alexander Valchev
Telerik team
 answered on 22 Apr 2013
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?