@maccesar/titools 4.4.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -13
- package/package.json +1 -1
- package/skills/purgetss/SKILL.md +4 -9
- package/skills/ti-api/references/api-core.md +24 -69
- package/skills/ti-api/references/api-data-network.md +18 -63
- package/skills/ti-api/references/api-media.md +225 -107
- package/skills/ti-api/references/api-modules-coremotion-urlsession.md +6 -20
- package/skills/ti-api/references/api-modules-map.md +45 -58
- package/skills/ti-api/references/api-modules-nfc.md +23 -56
- package/skills/ti-api/references/api-modules-social-misc.md +23 -3
- package/skills/ti-api/references/api-ui-android.md +16 -37
- package/skills/ti-api/references/api-ui-extras.md +106 -87
- package/skills/ti-api/references/api-ui-lists.md +103 -57
- package/skills/ti-api/references/api-ui-text-input.md +13 -39
- package/skills/ti-api/references/api-ui-windows-navigation.md +95 -93
- package/skills/ti-api/references/api-xml-global.md +25 -60
- package/skills/ti-expert/SKILL.md +8 -11
- package/skills/ti-expert/references/adaptive-layouts.md +15 -43
- package/skills/ti-expert/references/alloy-builtins.md +1 -4
- package/skills/ti-expert/references/alloy-structure.md +4 -12
- package/skills/ti-expert/references/anti-patterns.md +16 -45
- package/skills/ti-expert/references/code-conventions.md +2 -6
- package/skills/ti-expert/references/controller-patterns.md +1 -3
- package/skills/ti-expert/references/examples.md +3 -10
- package/skills/ti-expert/references/feedback-migration.md +17 -39
- package/skills/ti-expert/references/feedback-surfaces.md +19 -48
- package/skills/ti-expert/references/feedback-widget-contracts.md +31 -69
- package/skills/ti-expert/references/file-type-association.md +265 -0
- package/skills/ti-expert/references/migration-patterns.md +8 -18
- package/skills/ti-expert/references/sharing.md +227 -0
- package/skills/ti-expert/references/theming.md +20 -45
- package/skills/ti-guides/SKILL.md +5 -1
- package/skills/ti-guides/references/coding-best-practices.md +1 -2
- package/skills/ti-guides/references/compatibility-matrix.md +89 -0
- package/skills/ti-guides/references/resources.md +7 -1
- package/skills/ti-guides/references/sdk-release-notes.md +75 -0
- package/skills/ti-guides/references/style-and-conventions.md +1 -2
- package/skills/ti-howtos/references/debugging-profiling.md +1 -2
- package/skills/ti-howtos/references/location-and-maps.md +1 -2
- package/skills/ti-howtos/references/using-modules.md +1 -2
- package/skills/ti-howtos/references/web-content-integration.md +1 -2
- package/skills/ti-howtos/references/webpack-build-pipeline.md +1 -2
- package/skills/ti-ui/references/listviews-and-performance.md +5 -10
- package/skills/ti-ui/references/orientation.md +1 -2
- package/skills/ti-ui/references/scrolling-views.md +7 -1
|
@@ -202,8 +202,7 @@ The following views can be used as child elements in custom templates: ActivityI
|
|
|
202
202
|
|
|
203
203
|
### Binding syntax
|
|
204
204
|
|
|
205
|
-
XML (Alloy): `bindId:property="value"`
|
|
206
|
-
JavaScript: `{ bindId: { property: value } }`
|
|
205
|
+
XML (Alloy): `bindId:property="value"` JavaScript: `{ bindId: { property: value } }`
|
|
207
206
|
|
|
208
207
|
### Programmatic binding with custom templates
|
|
209
208
|
|
|
@@ -741,14 +740,10 @@ $.myList.cacheSize = 3; // Default
|
|
|
741
740
|
|
|
742
741
|
### Common issues
|
|
743
742
|
|
|
744
|
-
Problem: Jerky scrolling
|
|
745
|
-
Solution: Remove `Ti.UI.SIZE` from templates
|
|
743
|
+
Problem: Jerky scrolling Solution: Remove `Ti.UI.SIZE` from templates
|
|
746
744
|
|
|
747
|
-
Problem: Data changes not visible
|
|
748
|
-
Solution: Use `updateItemAt()` instead of modifying views
|
|
745
|
+
Problem: Data changes not visible Solution: Use `updateItemAt()` instead of modifying views
|
|
749
746
|
|
|
750
|
-
Problem: Event not firing on template element
|
|
751
|
-
Solution: Check `bindId` in event handler
|
|
747
|
+
Problem: Event not firing on template element Solution: Check `bindId` in event handler
|
|
752
748
|
|
|
753
|
-
Problem: Wrong item updated
|
|
754
|
-
Solution: Use `e.section.getItemAt(e.itemIndex)` not a global reference
|
|
749
|
+
Problem: Wrong item updated Solution: Use `e.section.getItemAt(e.itemIndex)` not a global reference
|
|
@@ -141,8 +141,7 @@ Ti.Gesture.addEventListener('orientationchange', (e) => {
|
|
|
141
141
|
});
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
Anti-pattern warning: Do not use `orientationchange` listeners to force an orientation. It causes the wrong orientation to flash, repeated firing, and bad behavior. Use `tiapp.xml` or window `orientationModes`.
|
|
145
|
-
...
|
|
144
|
+
Anti-pattern warning: Do not use `orientationchange` listeners to force an orientation. It causes the wrong orientation to flash, repeated firing, and bad behavior. Use `tiapp.xml` or window `orientationModes`. ...
|
|
146
145
|
### Window orientation events
|
|
147
146
|
|
|
148
147
|
```javascript
|
|
@@ -108,9 +108,15 @@ scrollableView.addEventListener('scroll', (e) => {
|
|
|
108
108
|
Ti.API.info(`Views: ${e.view}`); // View object reference
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
// Android only, and lowercase: ScrollableView has no `dragEnd` event.
|
|
112
|
+
scrollableView.addEventListener('dragend', (e) => {
|
|
112
113
|
Ti.API.info(`Drag ended, settled on page: ${e.currentPage}`);
|
|
113
114
|
});
|
|
115
|
+
|
|
116
|
+
// Cross-platform equivalent — fires once the view stops moving.
|
|
117
|
+
scrollableView.addEventListener('scrollend', (e) => {
|
|
118
|
+
Ti.API.info(`Settled on page: ${e.currentPage}`);
|
|
119
|
+
});
|
|
114
120
|
```
|
|
115
121
|
...
|
|
116
122
|
### Image gallery
|