1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    6
    Vote Rating
    0
    gblotter is on a distinguished road

      0  

    Default Answered: TabBar or ToolBar Dock Left (or Right)

    Answered: TabBar or ToolBar Dock Left (or Right)


    So I've searched through the forums, examples, the api, etc and even though the api provides for docking a toolbar or tabbar to the left or the right, I've yet to see it be placed vertically along the page. Instead it creates a new panel and the tabbar/toolbar is run horizontally along the top or bottom of that docked panel.Is there a way to get the tabbar or a toolbar that uses docking along the left or right sides, but that runs vertically instead docked meaning that it creates a new panel and throws the tabbar/toolbar at the top or bottom? Just so that you have an example of what I'm talking about: Screen Shot 2012-01-09 at 1.20.22 PM.jpgThe screenshot was taken from Apple's website, of an app put out by "zendesk."If this isn't possible, have you guys thought about making it possible?? Thanks so much for the help-Geoff
    Attached Images

  2. Code:
    Ext.create('Ext.Container', {
        fullscreen : true,
        items      : [
            {
                xtype  : 'toolbar',
                docked : 'left',
                layout : {
                    type  : 'hbox',
                    align : 'start'
                },
                items  : [
                    {
                        cls : 'refresh',
                        ui  : 'plain'
                    }
                ]
            }
        ]
    });
    Looks like it would work. There is a CSS property you need to get the height correct though:

    Code:
    .x-toolbar.x-docked-left {
        height : auto;
    }

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,047
    Answers
    3493
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Code:
    Ext.create('Ext.Container', {
        fullscreen : true,
        items      : [
            {
                xtype  : 'toolbar',
                docked : 'left',
                layout : {
                    type  : 'hbox',
                    align : 'start'
                },
                items  : [
                    {
                        cls : 'refresh',
                        ui  : 'plain'
                    }
                ]
            }
        ]
    });
    Looks like it would work. There is a CSS property you need to get the height correct though:

    Code:
    .x-toolbar.x-docked-left {
        height : auto;
    }
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    6
    Vote Rating
    0
    gblotter is on a distinguished road

      0  

    Default Wow

    Wow


    Hey,

    I appreciate the response . . . makin a believer out of me of the Sencha product I'll plug that in and let ya know what I find. Thanks again.

    -Geoff

  5. #4
    Sencha User
    Join Date
    Dec 2011
    Posts
    6
    Vote Rating
    0
    gblotter is on a distinguished road

      0  

    Default Worked like a charm

    Worked like a charm


    I plugged that in and got the desired effect, there is some CSS tweaking that needs to be done, but I'll manage that. Thank you again for the help.

    -Geoff

  6. #5
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,047
    Answers
    3493
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Fantastic! Happy coding!
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1