Guy Carmeli 6 лет назад
Родитель
Сommit
5a3ea19364
1 измененных файлов: 9 добавлений и 4 удалений
  1. 9
    4
      docs/docs/events.md

+ 9
- 4
docs/docs/events.md Просмотреть файл

@@ -87,22 +87,25 @@ Navigation.events().registerCommandCompletedListener((commandId, completionTime,
87 87
 
88 88
 The nativeEvent listener is used to track various events that originate in the native aspect of the app, primarily UI events.
89 89
 
90
-### `bottomTabSelected` event
90
+### bottomTabSelected event
91 91
 This event is emitted whenever a BottomTab is selected by the user
92
+
92 93
 |Parameter|Description|
93
-|:-:|:-|
94
+|:-:|:--|
94 95
 |**name**|`bottomTabSelected`|
95 96
 |**params**|`unselectedTabIndex`: The index of the previously selected tab<br>`selectedTabIndex`: The index of the newly selected tab|
96 97
 
97
-### `buttonPressed` event
98
+### buttonPressed event
98 99
 This event is emitted whenever a TopBat button is pressed by the user
100
+
99 101
 |Parameter|Description|
100
-|:-:|:-|
102
+|:-:|:--|
101 103
 |**name**|`buttonPressed`|
102 104
 |**params**|`componentId`: `componentId` of the layout element the pressed button is bound to<br>`buttonId`: `id` of the pressed button|
103 105
 
104 106
 ## onNavigationButtonPressed
105 107
 Called when a TopBar button is pressed.
108
+
106 109
 ```js
107 110
 class MyComponent extends Component {
108 111
   onNavigationButtonPressed(buttonId) {
@@ -113,6 +116,7 @@ class MyComponent extends Component {
113 116
 
114 117
 ## onSearchBarUpdated (iOS 11+ only)
115 118
 Called when a SearchBar from NavigationBar gets updated.
119
+
116 120
 ```js
117 121
 class MyComponent extends Component {
118 122
   onSearchBarUpdated(query, isFocused) {
@@ -123,6 +127,7 @@ class MyComponent extends Component {
123 127
 
124 128
 ## onSearchBarCancelPressed (iOS 11+ only)
125 129
 Called when the cancel button on the SearchBar from NavigationBar gets pressed.
130
+
126 131
 ```js
127 132
 class MyComponent extends Component {
128 133
   onSearchBarCancelPressed() {