106 $attributes = parent::appendDefaultJsonOption($attributes);
111 $mainButtonAttributes = clone
$mainButton->getAttributeCollection();
112 $mainButton->appendDefaultJsonOption($mainButtonAttributes);
114 $menuButtonAttributes = clone
$menuButton->getAttributeCollection();
115 $menuButton->appendDefaultJsonOption($menuButtonAttributes);
117 if ($mainButtonAttributes->getJsonOptions())
119 $attributes->addJsonOption(
'mainButton', $mainButtonAttributes->getJsonOptions());
122 if ($menuButtonAttributes->getJsonOptions())
124 $attributes->addJsonOption(
'menuButton', $menuButtonAttributes->getJsonOptions());