or
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
$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'
)
);