2yy-ngx-menu 中文文档教程
NgxMenu
此项目是使用 Angular CLI 10.0.1 版生成的。
Installation
npm i 2yy-ngx-menu
Motivation
- Use [FocusKeyManager]() with your own styles. (Fully customizable)
Usage
- Wrap your menu items with
lib-ngx-menu
. - Add
libNgxMenuItem
directive to your menu items.
Example
<lib-ngx-menu>
<button #button1 libNgxMenuItem (focusReceived)="lastFocusedButtonNumber = 1">Button 1</button>
<button libNgxMenuItem (focusReceived)="lastFocusedButtonNumber = 2">Button 2</button>
<button libNgxMenuItem (focusReceived)="lastFocusedButtonNumber = 3">Button 3</button>
<button libNgxMenuItem (focusReceived)="lastFocusedButtonNumber = 4">Button 4</button>
<button libNgxMenuItem (focusReceived)="lastFocusedButtonNumber = 5">Button 5</button>
</lib-ngx-menu>
您可以自由自定义按钮样式。