copyAnchorStyles Boolean(default: true)

Copies and uses the styles from the anchor.

Example

<span class="k-icon k-i-filter" id="span-target"></span>
<ul id="context-menu-span">
  <li>Item 1
    <ul>
      <li>Sub Item 1</li>
      <li>Sub Item 2</li>
      <li>Sub Item 3</li>
    </ul>
  </li>
  <li>Item 2
    <ul>
      <li>Sub Item 1</li>
      <li>Sub Item 2</li>
      <li>Sub Item 3</li>
    </ul>
  </li>
</ul>
<script>

  $("#context-menu-span").kendoContextMenu({
    target: "#span-target",
    alignToAnchor: true,
    copyAnchorStyles: false
  });
</script>
In this article