Skip to content

Commit 66094fa

Browse files
committed
docs(README.md): API for getting current component rendered to map the events accordingly.
1 parent ec83225 commit 66094fa

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,21 @@ e.g if a new component has been added in run time we need to update our library
5454

5555
status could be update ,destroy and refresh depending upon the change in navigation required in application.
5656

57-
-There is one more API for getting the current focused element by navigation. "By navigation" explicitly means that if focus is been hindered by other thing we might lose track of the desired navigation.
57+
- There is one more API for getting the current focused element by navigation. "By navigation" explicitly means that if focus is been hindered by other thing we might lose track of the desired navigation.
5858

5959
Current active element can be used to attach events. Like one can attach `click` event on element and can use `ng-click` on top of that.
6060

6161
```javascript
6262
naviBoard.getCurrentActiveElement()
6363
```
6464

65+
- You can attach event according to component currently having the access for navigation by getting the current rendered component and can map it to different event.
66+
67+
68+
```javascript
69+
naviBoard.getCurrentComponentRendered()
70+
```
71+
6572
Happy Coding!!!
6673

6774
> Use **naviboard** and suggest changes or modification required as its a small step for *developers* to save their time in order to navigate in feature phone applications instead writing lot of extra lines.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "naviboard",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "A javascript library for handling navigation on web application, feature phone and KAIOS applications.",
55
"main": "src/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)