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
By default when a listItem has [canEdit](Titanium.UI.ListItem.canEdit) set to true, a left swipe on the the row presens the 'Delete' button.
10
+
Edit actions can be used to add contextual buttons to your list items / table view rows. The configuration of
11
+
this API is the same for list items (if you use <Titanium.UI.ListView>) and table view rows (if you use <Titanium.UI.TableView).
12
+
13
+
But please note that the trigger to activate these edit actions can defer based on the API you're integrating the edit actions:
14
+
15
+
*List Views*:
16
+
By default when a ListItem has [canEdit](Titanium.UI.ListItem.canEdit) set to `true`, a left swipe on the the row presens the localized 'Delete' button.
11
17
This object lets developers define custom titles for editing actions supported on the row.
12
18
This object is used in conjunction with the [editActions](Titanium.UI.ListItem.editActions) property and
By default when a TableViewRow has [editable](Titanium.UI.TableViewRow.editable) set to `true`, a left swipe on the the row presens the localized 'Delete' button.
23
+
This object lets developers define custom titles for editing actions supported on the row.
24
+
This object is used in conjunction with the [editActions](Titanium.UI.TableViewRow.editActions) property and
25
+
[editaction](Titanium.UI.TableView.editaction) event. For table views, this property was added in Titanium SDK 12.4.0.
26
+
27
+
In addition, the new property "state" was added in 12.4.0 and can either equal "leading" or "trailing" to show them on a right swipe (leading)
28
+
or left swipe (trailing). If the "state" property is not set, it defaults to "trailing" for backwards compatibility.
Copy file name to clipboardExpand all lines: docs/api/titanium/app/properties.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,10 @@ Use the `name` attribute to define your property name and place the value inline
24
24
Then, you can retrieve the property during runtime with the following API call:
25
25
26
26
```js
27
-
var foo =Ti.App.Properties.getString('foo');
27
+
constfoo=Ti.App.Properties.getString('foo');
28
28
```
29
29
30
-
As of Release 3.2.0, any application properties defined in the `tiapp.xml` file are stored in the
30
+
Any application properties defined in the `tiapp.xml` file are stored in the
31
31
device's secure storage, making them read-only. Additionally, external access to these
32
32
properties is now restricted. Other iOS applications cannot access these properties and
33
33
native Android modules must use the Titanium module API TiApplication.getAppProperties()
@@ -36,8 +36,8 @@ method to access these properties.
36
36
If you need to change the values during runtime, initially create the property with these APIs
37
37
rather than defining them in the `tiapp.xml` file.
38
38
39
-
Prior to Release 3.2.0, application properties defined in the `tiapp.xml` file could be
40
-
overwritten by these APIs and accessed externally by other applications and modules.
39
+
**Important**: Using this API in the Apple ecosystem requires the `NSPrivacyAccessedAPICategoryUserDefaults`
40
+
property set in the privacy manifest that was introduced in iOS 17. You can learn more about it [here](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api).
0 commit comments