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.
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
AngularJs String Trim with example | http://www.onlinecode.org/angularjs-string-trim-example/ |
AngularJs String Search with example | http://www.onlinecode.org/angularjs-string-search-example/ |
AngularJS upload files using php | http://www.onlinecode.org/angularjs-upload-files-using-php/ |
AngularJs open link in new tab | http://www.onlinecode.org/angularjs-open-link-new-tab/ |
AngularJS copy clipboard | http://www.onlinecode.org/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