Skip to content

Commit

Permalink
Apply automatic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi authored and github-actions[bot] committed Oct 2, 2023
1 parent 1e1e743 commit 1f8cd6d
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 1,629 deletions.
1,446 changes: 18 additions & 1,428 deletions docs/api/api.json

Large diffs are not rendered by default.

18 changes: 0 additions & 18 deletions docs/api/structs/matrixcreationdict.md

This file was deleted.

87 changes: 0 additions & 87 deletions docs/api/titanium/ui/2dmatrix.md

This file was deleted.

56 changes: 0 additions & 56 deletions docs/api/titanium/ui/3dmatrix.md

This file was deleted.

3 changes: 3 additions & 0 deletions docs/api/titanium/ui/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ when the button is pressed.
### Simple Button Example

``` js
var win = Ti.UI.createWindow();
var button = Titanium.UI.createButton({
title: 'Hello',
top: 10,
Expand All @@ -138,6 +139,8 @@ button.addEventListener('click',function(e)
{
Titanium.API.info("You clicked the button");
});
win.add(button);
win.open();
```

### Alloy XML Markup
Expand Down
4 changes: 2 additions & 2 deletions docs/api/titanium/ui/listview.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ utilized along with the [pull](Titanium.UI.ListView.pull) and [pullend](Titanium
create a refresh control.

``` js
var win = Ti.UI.createWindow({backgroundColor: 'white'});
var win = Ti.UI.createWindow();
var listView = Ti.UI.createListView({height:'90%', top:0});
var sections = [];

Expand Down Expand Up @@ -484,7 +484,7 @@ Alloy 1.2.0 and later.
`app/views/index.xml`:
``` xml
<Alloy>
<Window backgroundColor="white">
<Window>
<ListView id="listView" defaultItemTemplate="template">

<!-- The Templates tag sets the ListView's templates property -->
Expand Down
4 changes: 1 addition & 3 deletions docs/api/titanium/ui/matrix2d.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ If you pass no arguments, `createMatrix2D` returns an identity matrix.
The following uses a 2D matrix to translate a label in the y direction.

``` js
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var win = Ti.UI.createWindow();

var label = Ti.UI.createLabel({
font: { fontSize: 50 },
Expand Down
4 changes: 1 addition & 3 deletions docs/api/titanium/ui/matrix3d.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ Move a label through a translation that repositions it from 100px to 200px from
the display.

``` js
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var win = Ti.UI.createWindow();

var label = Ti.UI.createLabel({
font: { fontSize : 50 },
Expand Down
1 change: 1 addition & 0 deletions docs/api/titanium/ui/scrollableview.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Create two scroll views, each containing an image view, and assign them as pages
scrollable view.

``` js
var win = Ti.UI.createWindow();
var img1 = Ti.UI.createImageView({
image:'http://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/' +
'Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg/' +
Expand Down
5 changes: 1 addition & 4 deletions docs/api/titanium/ui/scrollview.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Create a scroll view with content.

``` js
var win = Ti.UI.createWindow({
backgroundColor: 'white',
exitOnClose: true,
fullscreen: false,
title: 'ScrollView Demo'
Expand Down Expand Up @@ -72,9 +71,7 @@ rows. This approach can mitigate the native Android issue described in the "Text
Tables with SOFT_INPUT_ADJUST_PAN" section of <Titanium.UI.TableView>.

``` js
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
var win = Ti.UI.createWindow();

if (Ti.UI.Android){
win.windowSoftInputMode = Ti.UI.Android.SOFT_INPUT_ADJUST_PAN;
Expand Down
15 changes: 1 addition & 14 deletions docs/api/titanium/ui/tableview.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@ the keyboard is likely to completely obscure the text field.
To mitigate this, a `ScrollView` may be used instead of a table view, as demonstrated in the
[ScrollView](Titanium.UI.ScrollView), "Scroll View as a Table View", example.

### Known Issues

There are known issues with the `sections` property and associated methods added in
Release 3.0:

* On iOS, the first two arguments to the `updateSection` method are reversed.
([TIMOB-12625](https://jira-archive.titaniumsdk.com/TIMOB-12625)). This issue has been
addressed in Release 3.3.0 of the Titanium SDK

### Row Editing and Moving Modes

Table views have an `editing` and a `moving` mode that may be activated to using their
Expand Down Expand Up @@ -164,10 +155,6 @@ var sectionFish = Ti.UI.createTableViewSection({ headerTitle: 'Fish' });
sectionFish.add(Ti.UI.createTableViewRow({ title: 'Cod' }));
sectionFish.add(Ti.UI.createTableViewRow({ title: 'Haddock' }));

// Prior to Release 3.0, you can only add and remove sections by setting the data property
// table.data = [ sectionFish, sectionFruit, sectionVeg ];
// Due to a known issue, TIMOB-12616, the section access methods and sections
// property should not be used on iOS with Release 3.0.x.
table.insertSectionBefore(0, sectionFish);
```

Expand Down Expand Up @@ -258,7 +245,7 @@ Previous table view sections example as an Alloy view.

``` xml
<Alloy>
<Window id="win" backgroundColor="white">
<Window id="win">
<TableView id="table">
<TableViewSection id="sectionFruit" headerTitle="Fruit">
<TableViewRow title="Apple"/>
Expand Down
6 changes: 2 additions & 4 deletions docs/api/titanium/ui/textarea.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ Use `touchstart` event instead of `click` event.
This example creates a highly customized text area.

``` js
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var win = Ti.UI.createWindow();
var textArea = Ti.UI.createTextArea({
borderWidth: 2,
borderColor: '#bbb',
Expand Down Expand Up @@ -91,7 +89,7 @@ Previous basic text area with customizations example as an Alloy view.

``` xml
<Alloy>
<Window id="win" backgroundColor="white">
<Window id="win">
<TextArea id="textArea"
borderWidth="2" borderColor="#bbb" borderRadius="5"
color="#888" textAlign="left" value="I am a textarea"
Expand Down
8 changes: 2 additions & 6 deletions docs/api/titanium/ui/textfield.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ Use `touchstart` event instead of `click` event.
Create a simple text field with green text color.

``` js
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var win = Ti.UI.createWindow();

var textField = Ti.UI.createTextField({
backgroundColor: '#fafafa',
Expand All @@ -49,9 +47,7 @@ for more information.
This code excerpt creates a text field with a toolbar:

``` js
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var win = Ti.UI.createWindow();

var send = Ti.UI.createButton({
title: 'Send',
Expand Down
4 changes: 4 additions & 0 deletions docs/api/titanium/ui/view.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,15 @@ If `borderRadius` property has multiple values, animation on shadow associated w
Create a rounded view.

``` js
const window = Ti.UI.createWindow();
var view = Titanium.UI.createView({
borderRadius:10,
backgroundColor:'red',
width:50,
height:50
});
window.add(view);
window.open();
```

### Alloy XML Markup
Expand All @@ -240,7 +242,9 @@ Previous example as an Alloy view.

``` xml
<Alloy>
<Window>
<View id="view" borderRadius="10" backgroundColor="red" width="50" height="50" />
</Window>
</Alloy>
```

Expand Down
6 changes: 2 additions & 4 deletions docs/api/titanium/ui/webview.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ webview.evalJS(
'javascript=(function addBinding(){' +
'var s=document.createElement("script");' +
's.setAttribute("type","text/javascript");' +
's.innerHTML="' + require('/binding.js') + '";'
's.innerHTML="' + /* insert content of binding.min.js */ + '";'
+
'document.getElementsByTagName("body")[0].appendChild(s);' +
'})()'
Expand Down Expand Up @@ -187,9 +187,7 @@ As a workaround you can try to get the `document.body.scrollHeight` inside <Tita
of webview and set the height to webview. See following example.

``` js
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var win = Ti.UI.createWindow();

var verticalView = Ti.UI.createView({layout: 'vertical', width: "100%", height: "100%"});

Expand Down

0 comments on commit 1f8cd6d

Please sign in to comment.