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

[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[];Ï


See this Url
AngularJs String Trim with example
AngularJs String Search with example
AngularJS upload files using php
AngularJs open link in new tab
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

Leave a Comment

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

  +  38  =  44

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US