You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 800efe2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Modules30Changes.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ Use the corresponding events such: `application.on(“suspend”, (args: applica
64
64
Removed all android specific callback methods. For example instead of `application.android.onActivityResult(…)` use `application.android.on("activityResult", (eventData) => …)`
65
65
66
66
### Console
67
-
`console.dump()` removed, use `console.dir()` instead
67
+
`console.dump()` removed, use `console.dir()` instead.
68
68
69
69
### KeyframeAnimation
70
70
Changed method `keyframeAnimationFromInfo(info: KeyframeAnimationInfo, valueSourceModifier: number): KeyframeAnimation` to `KeyframeAnimation.keyframeAnimationFromInfo(info: KeyframeAnimationInfo): KeyframeAnimation`. ValueSource no longer needed.
@@ -77,6 +77,20 @@ Use `observableModule.fromObject(obj)` method instead.
77
77
Removed method `insertTab()`. You can use `items` property for setting additional tabs.
78
78
Removed method `getValidIndex()` - it was intended for internal use only.
79
79
80
+
The 'items' property os of type `SegmentedBarItem[]`. Items should be created using the `SegmentedBarItem` constructor.
81
+
82
+
Old code:
83
+
```
84
+
let firstItem = {"title": "first"};
85
+
segmentedBar.items = [ firstItem ];
86
+
```
87
+
New code:
88
+
```
89
+
let firstItem = new SegmentedBarItem();
90
+
firstItem.title = "first";
91
+
segmentedBar.items = [ firstItem ];
92
+
```
93
+
80
94
### Span
81
95
Removed methods and properties. These were for internal use only and not needed any more:
82
96
*`parentFormattedString` property
@@ -135,6 +149,9 @@ There are several type of Properties in modules 3.0:
135
149
*`CssProperty` – property defined on `Style` type. These are properties that could be set in CSS.
136
150
*`InheritedCssProperty `- property defined on `Style` type. These are inheritable CSS properties that could be set in CSS and propagates value on its children. These are properties like `FontSize`, `FontWeight`, `Color`, etc.
137
151
152
+
### NativeView property
153
+
There is a new property `nativeView` in `ViewBase` class. It is recommended to use `nativeView` instead of `ios` and `android` properties. The `ios` and `android` properties are left for compatibility, however all view-lifecycle methods and native property callbacks (explained below) should work with the `nativeView` property.
154
+
138
155
### Property Example
139
156
In here is how to define `text` (view property) and `text-align` (css property) for the text-View
0 commit comments