Announcement

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

    Multiple icon in tab

    Hello, Is there any property to set multiple icons in tab ?? I have following structure.

    isc.TabSet.create({
    ID: "newTabs",
    tabBarPosition: "top",
    canReorderTabs: true,
    tabs: [{
    title: "Add",
    icon: [plus.png, power.png] // add power
    },
    { title:"Add",
    icon: [plus.png, elect.png] // add settings
    }
    ]



    I still have alternate to make one image combining 2 images. But before that i wanted to try it.

    #2
    You can include an additional image as part of the title attribute, since it is allowed to be HTML.

    Comment


      #3
      Thank you,

      I read it on documentation but trouble is my title are UserEditable........ On title double click or say titleChanged , browser displays everything with HTML tag and title name. Which is not good.

      Anything else I can do to prevent browser showing all HTML tags??

      Comment


        #4
        You could manually trigger tab title editing by setting canEditTabTitles to false, then triggering editing via tabSet.editTabTitle(). In this way you'd be able to change the title to omit the <img> HTML right before editing starts, then re-add it once editing is complete.

        Or there's the approach you previously mentioned of combining both icons into a single image.

        Comment

        Working...
        X