-
20 Jun 2010 4:51 AM #1
Something wrong with the Api ?
Something wrong with the Api ?
Hello everybody,
i'm very new with sencha touch and with Ext JS as well.
I'm trying to do a very simple thing : showing toolbar with some buttons on it.
So i opened the toolbars example to understand how all of this work.
I see at the end of the file :
The problem is i can't find in the Api the dockedItems property.Code:new Ext.Panel({ id: 'toolbartxt', html: 'Pick a button, any button. <br /><small>By using SASS, all of the buttons on this screen can be restyled dynamically. The only images used are masks.</small>', fullscreen: true, dockedItems: dockedItems });
The same with doLayout() if i try a search in the main api's page i can see it but when i go to a link no way to find it...
Am i misunderstanding something ?
Thanks a lot for help !
-
20 Jun 2010 5:00 AM #2
your right its missing in the api doc, i'll add this to the bug thread.
dockedItems you can for example add a array with item configuration like to items in extjs
example:
PHP Code:dockedItems: [{
dock: 'top',
xtype: 'toolbar',
title: 'Standard Titlebar'
},{
dock: 'top',
xtype: 'toolbar',
type: 'light',
items: [{
text: 'Test Button'
}]
}],
trainings / workshops / consulting: Sencha Touch / Ext JS
Profile on SenchaDevs
www: http://www.nils-dehl.de
twitter: nilsdehl
meetup: Sencha Touch / Ext JS Meetup Frankfurt
videos: http://vimeo.com/album/1621422
conference photos: http://www.flickr.com/photos/nils-dehl/
-
20 Jun 2010 5:27 AM #3
Allright thanks a lot mrsunshine :-)
Could you tell me what others values the dock property is able to take besides top and bottom ? Because i can't find any documentation about dock in the api either...
-
20 Jun 2010 5:47 AM #4
also missing in the api :-)The componentsmust include a 'dock' paramater on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left')
my tip if you need information to undocumented propertys or features take a look to the source code for example Ext.Paneltrainings / workshops / consulting: Sencha Touch / Ext JS
Profile on SenchaDevs
www: http://www.nils-dehl.de
twitter: nilsdehl
meetup: Sencha Touch / Ext JS Meetup Frankfurt
videos: http://vimeo.com/album/1621422
conference photos: http://www.flickr.com/photos/nils-dehl/
-
20 Jun 2010 7:01 AM #5
Ok i'll check the source code before posting from now

Thanks for your help !
-
20 Jun 2010 7:02 AM #6trainings / workshops / consulting: Sencha Touch / Ext JS
Profile on SenchaDevs
www: http://www.nils-dehl.de
twitter: nilsdehl
meetup: Sencha Touch / Ext JS Meetup Frankfurt
videos: http://vimeo.com/album/1621422
conference photos: http://www.flickr.com/photos/nils-dehl/
-
20 Jun 2010 1:13 PM #7
Hello again
i'm a bit confused with the api because it seems it is still uncomplete.
When i compare the sencha touch api with the ext js api i see that sencha touch api is uncomplete and for example all layouts are similary documented like there isn't any differences between them. Then i check in ext js api and i see all the differences about properties. So what to do?
Another example, when i tried to understand the kithen sink demo i see :
again nothing in the sencha touch api about Ext.ns and Ext.ux, the only way is to have a look at the ext js api...Code:Ext.ns('sink', 'demos', 'Ext.ux'); Ext.ux.UniversalUI = Ext.extend(Ext.Panel, { ...
For me it's ok to look only in ext js api instead of sencha touch api but i guess that everything is not compatible.
I could look each time in the source code but finally it takes quite a lot of time...
I'd like to know when the devlelopment team will realase a complete api ?
Otherewise great job !
-
20 Jun 2010 1:44 PM #8
Ext.ns is a shortcut for Ext.namespace() and Ext.ux is the namespace for reusable user classes.
Your right the API documentation have to be reworked but keep in mind this is the first public beta of sencha touch
trainings / workshops / consulting: Sencha Touch / Ext JS
Profile on SenchaDevs
www: http://www.nils-dehl.de
twitter: nilsdehl
meetup: Sencha Touch / Ext JS Meetup Frankfurt
videos: http://vimeo.com/album/1621422
conference photos: http://www.flickr.com/photos/nils-dehl/
Similar Threads
-
Adding informative Tags to Chart -API solution or API incomplete?
By t-s in forum Ext GWT: DiscussionReplies: 0Last Post: 8 Mar 2010, 4:09 AM -
[FIXED][3.0rev3858] Ext.data.Api throws exception for invalid API
By dj in forum Ext 3.x: BugsReplies: 6Last Post: 20 May 2009, 10:31 AM -
Ext.data.Api.CREATE and Ext.data.Api.UPDATE
By MiamiCoder in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 5 May 2009, 4:50 PM -
(SOLED)Yahoo BOSS API Or Google API Implementation
By anshubansal2000 in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 23 Jan 2009, 5:48 AM


Reply With Quote