mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Improve a note to appear in the segmented-bar howto
This commit is contained in:
@ -95,8 +95,8 @@ export var testSelectedIndexBecomesZeroWhenItemsBoundToNonEmptyArray = function
|
|||||||
var segmentedBar = <segmentedBarModule.SegmentedBar>views[0];
|
var segmentedBar = <segmentedBarModule.SegmentedBar>views[0];
|
||||||
// <snippet module="ui/segmented-bar" title="SegmentedBar">
|
// <snippet module="ui/segmented-bar" title="SegmentedBar">
|
||||||
// ### Creating segmentedBar.items
|
// ### Creating segmentedBar.items
|
||||||
// It is important that an items array must get created and filled with items first and
|
// It is important that an items array gets created and filled with
|
||||||
// then assigned to the segmented bar.
|
// items first and then assigned to the segmented bar.
|
||||||
// ``` JavaScript
|
// ``` JavaScript
|
||||||
var items = [];
|
var items = [];
|
||||||
var item1 = new segmentedBarModule.SegmentedBarItem();
|
var item1 = new segmentedBarModule.SegmentedBarItem();
|
||||||
|
Reference in New Issue
Block a user