Skip to content

Commit

Permalink
allow the setting of columns and rows inside the dashboardview. Note …
Browse files Browse the repository at this point in the history
…that it appears that the number of rows is calculated rather than honored if explicitely set. Columns works thankfully. Allows 4x4 grids on dhasboard
  • Loading branch information
stelford committed Dec 8, 2010
1 parent e2293ec commit a3bf8a5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions iphone/Classes/TiUIDashboardView.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@ -(void)frameSizeChanged:(CGRect)frame bounds:(CGRect)bounds
}
}

-(void)setRows_:(NSNumber *)rows
{
if (rows) {
[self launcher];
launcher.rowCount = [rows intValue];
}
}

-(void)setColumns_:(NSNumber *)cols
{
if (cols) {
[self launcher];
launcher.columnCount = [cols intValue];
}
}

-(void)setData_:(id)args
{
[self launcher];
Expand Down

1 comment on commit a3bf8a5

@m4nu56
Copy link

@m4nu56 m4nu56 commented on a3bf8a5 May 11, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, how do you use the setColumns param from JS Appcelerator scripts after performing this change in the objective-c classes ?
Thank's for your help

Please sign in to comment.