9.1.3 • Published 3 years ago

@neocomplexx/ngx-neo-components-mat v9.1.3

Weekly downloads
42
License
-
Repository
-
Last release
3 years ago

NeoComponents

Usefull Angular components.

Installation

To install this library, run:

$ npm i @neocomplexx/ngx-neo-components

Components

NeoList

Use it for keyboard navigation and command execution inside a list of elements.

It has three parts, neo-list, neo-list-item, and neoListKeydown directive

<input class="form-control" placeholder="Search..." #input>
<neo-list 
    (leaveItem)="onDeactive($event)"
    (focusItem)="onActive($event)"
    [(activeIndex)]="lastIndexSelected"
    [neoListKeydown]="input" 
    [icommand]="testItemCmd"  
    [commandOnClick]="true" 
    [commandOnEnter]="false">
    <neo-list-item *ngFor="let listItem of items" [item]="listItem">
            {{item.property }}
    </neo-list-item>
</neo-list>

Outputs

  • leaveItem: Emit the item that lost focus
  • focusItem: Emit the focused item
  • activeIndex: Emit the index number of the focused item

Inputs

  • activeIndex: (optional) If it is set, the item with 'index' is focused on init
  • icommand: (optional) An ICommand from NeoDirectives
  • commandOnClick: (optional) If true, command will execute on clicked element (default: true)
  • commandOnEnter: (optional) If true, command will execute on focues element on enter (default: true)
  • typeAhead: (optional) If true, items will be selected with typeAhead input (default: true)
  • typeAheadDelay: (optional) Delay for typeAhead keypress (default: 300)

  • item: neo-list-item Receives the item from list

  • neoListKeydown: Directive receives a html element to attach keydown events

Development server

You can run the example project to check the components Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

License

MIT © Neocomplexx

9.1.3

3 years ago

9.1.2

4 years ago

9.1.1

4 years ago

9.1.0

4 years ago

8.0.12

4 years ago

8.0.11

4 years ago

8.0.10

4 years ago

8.0.9

4 years ago

8.0.8

4 years ago

9.0.0

4 years ago

8.0.7

4 years ago

8.0.6

4 years ago

8.0.5

4 years ago

8.0.4

4 years ago

7.1.11

4 years ago

8.0.3

4 years ago

7.1.10

4 years ago

7.1.9

4 years ago

8.0.2

4 years ago

8.0.1

4 years ago

8.0.0

4 years ago

7.1.8

4 years ago

7.1.7

4 years ago

7.1.6

4 years ago

7.1.5

4 years ago

7.1.4

4 years ago

7.1.3

4 years ago

7.1.2

4 years ago

7.1.1

4 years ago

7.1.0

4 years ago

7.0.12

5 years ago

7.0.11

5 years ago

7.0.9

5 years ago

7.0.8

5 years ago

7.0.7

5 years ago

7.0.6

5 years ago

7.0.4

5 years ago

7.0.3

5 years ago

7.0.2

5 years ago

7.0.1

5 years ago

1.0.0

5 years ago