Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Tabs - canClose and icon

    Hello.
    I try to create Tab on TabSet with both "icon" and "canClose:true".
    And canClose icon overrides usual icon.
    Is it normal behavior or it's a bug?

    example ( http://smartclient.com/#closeableTabs )

    isc.TabSet.create({
    ID: "tabSet",
    tabBarPosition: "top",
    width: 400,
    height: 200,
    tabs: [
    {title: "Blue", canClose: true, icon: "other/help.png",
    pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/pawn_blue.png"})},
    {title: "Green", icon: "other/help.png",
    pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/pawn_green.png"})}
    ]
    });


    I need to show both icons - and tab's icon, and close icon.

    Thank you

    #2
    This has been answered in the forum previously. Basically you need to imbed a img within the title for your icon. Search the archives and you will find the details.

    Comment


      #3
      Originally posted by davidj6 View Post
      This has been answered in the forum previously. Basically you need to imbed a img within the title for your icon. Search the archives and you will find the details.
      Ooo, thank you for point.
      Found this link now:
      http://forums.smartclient.com/showth...=tab+closeIcon

      thank you!

      Comment

      Working...
      X