Skip to main content

attachHTML()

adds an HTML content into a Tabbar cell

attachHTML(html: string): void;

Parameters:

  • html: string - an HTML content to be added into a cell

Example

const tabbar = new dhx.Tabbar("tabbar_container", {
mode: "top",
css: "dhx_widget--bordered",
views: [
{ id: "vilnius", tab: "Vilnius" },
]
});

tabbar.getCell("vilnius").attachHTML("<p>Information about Vilnius</p>");

Related sample: Tabbar. Attach HTML