Hybrid View

  1. #1
    Sencha User
    Join Date
    Jan 2008
    Posts
    154
    Vote Rating
    0
    NotChris is on a distinguished road

      0  

    Default Unanswered: Multiple icons within one cell in a TreeGrid?

    Unanswered: Multiple icons within one cell in a TreeGrid?


    I need to be able to place multiple icons within a cell in a treegrid. I have one being displayed correctly but was wondering if it is possible to place multiple icons within some type of a container within a treegrid cell?

    Thank you.

    Code:
    List<ColumnConfig> configs = model.getColumns();
    IconButton newBtn = new IconButton(style);
    configs.add(1, newBtn);

  2. #2
    Sencha User
    Join Date
    Jan 2008
    Posts
    154
    Vote Rating
    0
    NotChris is on a distinguished road

      0  

    Default


    I tried a ContentPanel in this case but it adds a header and footer which I do not want. Any suggestions on what container to use in this case?

  3. #3
    Sencha User
    Join Date
    Jan 2008
    Posts
    154
    Vote Rating
    0
    NotChris is on a distinguished road

      0  

    Default


    OK, it appears that a HorizontalPanel works in this case. The icons appear next to each other horizontally in the treegrid cell. So this has been answered.

    HorizontalPanel hp = new HorizontalPanel();
    List<ColumnConfig> configs = model.getColumns();
    IconButton newBtn = new IconButton(style1);
    IconButton saveBtn = new IconButton(style2);
    hp.add(newBtn);
    hp.add(saveBtn);
    configs.add(1, hp);

  4. #4
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Answers
    60
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Is there any special reason why you want to use widgets at all? If you just want to display icons you can better simple put in the html markup as string

Thread Participants: 1