Results 1 to 4 of 4

Thread: Multiple icons within one cell in a TreeGrid?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jan 2008
    Posts
    154
    Vote Rating
    0
      0  

    Default 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
      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
      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 Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Answers
    60
    Vote Rating
    131
      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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •