Content-Length: 798097 | pFad | http://github.com/NativeScript/docs/commit/5aefc5e816448d1f825606a9df0eb50e121736b2

32 chore: cleanup · NativeScript/docs@5aefc5e · GitHub
Skip to content

Commit 5aefc5e

Browse files
committed
chore: cleanup
1 parent 3bd7cba commit 5aefc5e

16 files changed

+28
-30
lines changed

Diff for: content/ui/action-bar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ Gets or sets the icon of the action item.
706706
| `unloaded` | Emitted when the view is unloaded. |
707707
| `layoutChanged` | Emitted when the layout bounds of a view changes due to layout processing. |
708708

709-
### API
709+
## API
710710

711711
| Name | Type |
712712
| :--------------------------------------------------------------------------------------- | :------ |

Diff for: content/ui/activity-indicator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Gets or sets whether the indicator is active.
117117

118118
---
119119

120-
### Inherited
120+
### ...Inherited
121121

122122
For additional inherited properties,refer to the [API Reference](https://docs.nativescript.org/api-reference/classes/activityindicator).
123123

Diff for: content/ui/button.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ Make the button disabled or enabled. A disabled button is unusable and un-clicka
129129

130130
---
131131

132-
### Inherited
132+
### ...Inherited
133133

134134
For additional inherited properties, refer to the [API Reference](https://docs.nativescript.org/api-reference/classes/button).
135135

136136
---
137137

138-
## Event(s)
138+
## Events
139139

140140
### tap
141141

Diff for: content/ui/datepicker.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Valid values are numbers:
284284

285285
---
286286

287-
## Event(s)
287+
## Events
288288

289289
### dateChange
290290

Diff for: content/ui/htmlview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Gets or sets a value indicating whether HtmlView is selectable.
121121

122122
---
123123

124-
### Inherited
124+
### ...Inherited
125125

126126
For additional inherited properties, refer to the [API Reference](https://docs.nativescript.org/api-reference/classes/htmlview).
127127

Diff for: content/ui/label.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Defaults to `"initial"`.
241241

242242
For additional inherited properties, refer to the [API Reference](https://docs.nativescript.org/api-reference/classes/label).
243243

244-
## Event(s)
244+
## Events
245245

246246
### textChange
247247

Diff for: content/ui/listpicker.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Gets or sets the index of the currently selected item.
143143

144144
For additional inherited properties, refer to the [API Reference](https://docs.nativescript.org/api-reference/classes/listpicker).
145145

146-
## Event(s)
146+
## Events
147147

148148
### selectedIndexChange
149149

Diff for: content/ui/listview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Checks if the item with the specified index is visible.
202202

203203
---
204204

205-
## Event(s)
205+
## Events
206206

207207
### itemTap
208208

Diff for: content/ui/placeholder.md

+11-13
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Placeholder
33
---
44

5-
`<Placeholder>` allows you to add any native widget to your application. To do that, you need to put a Placeholder somewhere in the UI hierarchy and then create and configure the native widget that you want to appear there. Finally, pass your native widget to the event arguments of the creatingView event.
5+
`<Placeholder>` allows adding native views directly in your markup without creating a full [View](#) wrapper for it. When NativeScript is constructing the UI and encounters a placeholder element, it emits a `creatingView` event, allowing you to pass in any native view to be rendered by assigning it to the `args.view` parameter.
66

77
### Creating a Simple Placeholder
88

@@ -29,6 +29,7 @@ export function creatingView(args) {
2929
nativeView.setText('Native View (Android)')
3030
}
3131

32+
// assign it to args.view so NativeScript can place it into the UI
3233
args.view = nativeView
3334
}
3435
```
@@ -122,24 +123,21 @@ methods: {
122123
123124
//github.com/ -->
124125

125-
## Placeholder Reference(s)
126+
## Props
126127

127-
### Props
128+
### ...Inherited
128129

129-
| Name | Type | Description |
130-
| -------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
131-
| `N/A` | `N/A` | None. |
132-
| `...Inherited` | `Inherited` | Additional inherited properties not shown. Refer to the [API Reference](https://docs.nativescript.org/api-reference/classes/placeholder) |
130+
Additional inherited properties not shown. Refer to the [API Reference](https://docs.nativescript.org/api-reference/classes/placeholder)
133131

134-
<!-- TODO: Add description for creatingView event-->
132+
## Events
135133

136-
### Events
134+
### creatingView
137135

138-
| Name | Description |
139-
| -------------- | ----------- |
140-
| `creatingView` | |
136+
Emitted when building the UI, the event args allow passing a native view instance back via `args.view`.
141137

142-
### CreateViewEventData
138+
#### CreateViewEventData
139+
140+
<!-- todo: perhaps just link to API ref. -->
143141

144142
| Name | Type | Description |
145143
| --------- | ----- | -------------------------------------------------------- |

Diff for: content/ui/scrollview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Scrolls the content to the specified horizontal offset position. Set `animated`
232232

233233
---
234234

235-
## Event(s)
235+
## Events
236236

237237
### scroll
238238

Diff for: content/ui/searchbar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Gets or sets the color of the placeholder text.
203203

204204
For additional inherited properties, refer to the [API Reference](https://docs.nativescript.org/api-reference/classes/searchbar)
205205

206-
## Event(s)
206+
## Events
207207

208208
### textChange
209209

Diff for: content/ui/slider.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Gets or sets the maximum value of the slider.
148148

149149
For additional inherited properties, refer to the [API Reference](https://docs.nativescript.org/api-reference/classes/slider).
150150

151-
## Event(s)
151+
## Events
152152

153153
### valueChange
154154

Diff for: content/ui/switch.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Gets or sets the off-state color.
147147

148148
For additional inherited properties, refer to the [API Reference](https://docs.nativescript.org/api-reference/classes/switch).
149149

150-
## Event(s)
150+
## Events
151151

152152
### checkedChange
153153

Diff for: content/ui/tabview.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ The `TabView` component has the following unique styling properties:
259259
- [title](#title)
260260
- [textTransform](#texttransform)
261261
- [iconSource](#iconsource)
262-
- [Event(s)](#events)
262+
- [Events](#events)
263263
- [selectedIndexChange](#selectedindexchange)
264264
- [SelectedIndexChangedEventData](#selectedindexchangedeventdata)
265265
- [Native component](#native-component)
@@ -413,7 +413,7 @@ Sets the text transform individually for every `TabViewItem`. See [textTransfo
413413

414414
Gets or sets the icon source of the tab strip entry. Supports local image paths (`~`), resource images (`res://`) and icon fonts (`font://`).
415415

416-
## Event(s)
416+
## Events
417417

418418
### selectedIndexChange
419419

Diff for: content/ui/timepicker.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Gets or sets the selectable minute interval. `Default`:`1`.
238238

239239
---
240240

241-
### Inherited Props
241+
### ...Inherited
242242

243243
For additional inherited properties not shown, refer to the [API Reference](https://docs.nativescript.org/api-reference/classes/timepicker) |
244244

Diff for: content/ui/webview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Reloads the current url.
190190

191191
---
192192

193-
### Inherited
193+
### ...Inherited
194194

195195
For additional inherited properties not shown, refer to the [API Reference](https://docs.nativescript.org/api-reference/classes/webview)
196196

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/docs/commit/5aefc5e816448d1f825606a9df0eb50e121736b2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy