2022-08-26 08:35:55 -07:00
|
|
|
import { IgniteHtml } from '../ignite-html/ignite-html.js';
|
2020-10-26 15:27:43 -07:00
|
|
|
import { IgniteElement } from "../ignite-html/ignite-element.js";
|
|
|
|
import { IgniteTemplate, slot, list, div } from "../ignite-html/ignite-template.js";
|
|
|
|
import { IgniteProperty } from "../ignite-html/ignite-html.js";
|
|
|
|
|
|
|
|
class IconTabs extends IgniteElement {
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
|
|
|
get styles() {
|
2020-12-08 09:19:34 -08:00
|
|
|
return /*css*/`
|
2020-10-26 15:27:43 -07:00
|
|
|
mt-icon-tabs > .icons {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
gap: 1em;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
|
|
|
|
get properties() {
|
|
|
|
return {
|
|
|
|
icons: []
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return this.template.child(
|
|
|
|
new div().class("icons").child(
|
|
|
|
new list(this.icons, icon => {
|
|
|
|
return new div(icon);
|
|
|
|
})
|
|
|
|
),
|
|
|
|
new slot(this)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class IconTabsTemplate extends IgniteTemplate {
|
|
|
|
constructor(...children) {
|
|
|
|
super("mt-icon-tabs", children);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-26 08:35:55 -07:00
|
|
|
IgniteHtml.register("mt-icon-tabs", IconTabs);
|
2020-10-26 15:27:43 -07:00
|
|
|
|
|
|
|
export {
|
|
|
|
IconTabsTemplate as IconTabs
|
2022-08-26 08:35:55 -07:00
|
|
|
}
|