Angular2 Right Click Menu

Angular2 Right Click Menu

In this post we will show you Angular2 Right Click Menu, hear for Angular2 Right Click Menu we will give you demo and example for implement.

Hear is Git hub like for Download, Demo and for information(Read More), it will help you into development and implement for Angular2 Right Click Menu. This link of git will give you document, instruction, installation and other information.





Read More Demo Download

How to use

npm install --save ng2-right-click-menu

import ShContextMenuModule into your app module
Add the [sh-context] directive to the desired element and bind an IShContextMenuItem array.

Use the [sh-data-context] property to inject a context object of type any.

<!-- menuItems -->
<div class="box" [sh-context]="menuItems" [sh-data-context]="dataObject">
// set content hear
</div>

[sh-context] (IShContextMenuItem[])

interface IShContextMenuItem {
label?: string;
// as of version 0.0.11 this property is rendered as HTML
divider?: boolean;
// onClick
onClick?($event: any): void;
// visible
visible?(context: any): boolean;
// disabled
disabled?(context: any): boolean;
// subMenu
subMenu?: boolean;
// subMenuItems
subMenuItems?: IShContextMenuItem[];Ï
}

YOU ALSO LIKE RELATED POSTS

See this Url
AngularJs String Trim with example http://www.onlinecode/angularjs-string-trim-example/
AngularJs String Search with example http://www.onlinecode/angularjs-string-search-example/
AngularJS upload files using php http://www.onlinecode/angularjs-upload-files-using-php/
AngularJs open link in new tab http://www.onlinecode/angularjs-open-link-new-tab/
AngularJS copy clipboard http://www.onlinecode/angularjs-copy-clipboard/

Hope this code and post will helped you for implement Angular2 Right Click Menu. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve onlincode. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs onlincode.org




Leave a Comment

Your email address will not be published. Required fields are marked *

51  +    =  56

We accept paid advance and paid guest Posting on our Site : Contact US