MCPcopy Create free account
hub / github.com/UI5/webcomponents / styles

Method styles

packages/main/src/Table.ts:622–639  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

620 }
621
622 get styles() {
623 const virtualizer = this._getVirtualizer();
624 const headerStyleMap: Record<string, string> = {};
625 this.headerRow[0]?.cells.forEach(headerCell => {
626 headerStyleMap[`--halign-${headerCell._id}`] = headerCell.horizontalAlign || "initial";
627 });
628 return {
629 table: {
630 "grid-template-columns": this._gridTemplateColumns,
631 "--row-height": virtualizer ? `${virtualizer.rowHeight}px` : "auto",
632 ...headerStyleMap,
633 },
634 spacer: {
635 "transform": virtualizer?._getTransform(),
636 "will-change": virtualizer && "transform",
637 },
638 };
639 }
640
641 get _gridTemplateColumns() {
642 if (!this.headerRow[0]) {

Callers

nothing calls this directly

Calls 2

_getVirtualizerMethod · 0.95
_getTransformMethod · 0.80

Tested by

no test coverage detected