1. #1
    Ext User
    Join Date
    Jun 2010
    Posts
    4
    Vote Rating
    0
    Edoc is on a distinguished road

      0  

    Default 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 :
    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 problem is i can't find in the Api the dockedItems property.
    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 !

  2. #2
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    691
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Default


    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'
            
    }]
        }], 

  3. #3
    Ext User
    Join Date
    Jun 2010
    Posts
    4
    Vote Rating
    0
    Edoc is on a distinguished road

      0  

    Default


    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...

  4. #4
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    691
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Default


    The componentsmust include a 'dock' paramater on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left')
    also missing in the api :-)
    my tip if you need information to undocumented propertys or features take a look to the source code for example Ext.Panel

  5. #5
    Ext User
    Join Date
    Jun 2010
    Posts
    4
    Vote Rating
    0
    Edoc is on a distinguished road

      0  

    Default


    Ok i'll check the source code before posting from now
    Thanks for your help !

  6. #6
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    691
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Default


    Quote Originally Posted by Edoc View Post
    Ok i'll check the source code before posting from now
    Thanks for your help !
    your welcome, good luck ;-)

  7. #7
    Ext User
    Join Date
    Jun 2010
    Posts
    4
    Vote Rating
    0
    Edoc is on a distinguished road

      0  

    Default


    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 :

    Code:
    Ext.ns('sink', 'demos', 'Ext.ux');
    
    Ext.ux.UniversalUI = Ext.extend(Ext.Panel, {
    ...
    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...
    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 !

  8. #8
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    691
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Default


    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

Similar Threads

  1. Replies: 0
    Last Post: 8 Mar 2010, 4:09 AM
  2. Replies: 6
    Last Post: 20 May 2009, 10:31 AM
  3. Ext.data.Api.CREATE and Ext.data.Api.UPDATE
    By MiamiCoder in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 5 May 2009, 4:50 PM
  4. (SOLED)Yahoo BOSS API Or Google API Implementation
    By anshubansal2000 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 23 Jan 2009, 5:48 AM

Thread Participants: 1