Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions code-gen-library/HierarchicalGridPinHeaderTemplate/Blazor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ igRegisterScript("HierarchicalGridPinHeaderTemplate", (ctx) => {
window.toggleColumnPin = function toggleColumnPin(column) {
column.pinned = !column.pinned;
}
return html`<div>
<span style="float:left">${ctx.column.field}</span>
<span style="float:right" @click=${() => toggleColumnPin(ctx.column)}>📌</span>
return html`<div style="display:flex;">
<span>${ctx.column.field}</span>
<span style="margin-left: auto;" @click=${() => toggleColumnPin(ctx.column)}>📌</span>
</div>`;
}, false);
//end template
6 changes: 3 additions & 3 deletions code-gen-library/HierarchicalGridPinHeaderTemplate/React.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export class HierarchicalGridPinHeaderTemplate {
public hierarchicalGridPinHeaderTemplate = (props: {dataContext: IgrColumnTemplateContext}) => {
const column = (props.dataContext as any).column;
return (
<div>
<span style={{float: 'left'}}>{column.field}</span>
<span style={{float: 'right'}} onClick={(e: any) => this.toggleColumnPin(column)}>📌</span>
<div style={{display: 'flex'}}>
<span>{column.field}</span>
<span style={{marginLeft: 'auto'}} onClick={(e: any) => this.toggleColumnPin(column)}>📌</span>
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export class HierarchicalGridPinHeaderTemplate {
public hierarchicalGridPinHeaderTemplate = (ctx: IgcColumnTemplateContext) => {

const column = (ctx as any).column;
return html`<div>
<span style="float:left">${column.field}</span>
<span style="float:right" @click=${(e: any) => this.toggleColumnPin(column)}>📌</span>
return html`<div style="display:flex;">
<span>${column.field}</span>
<span style="margin-left: auto;" @click=${(e: any) => this.toggleColumnPin(column)}>📌</span>
</div>`;
};
//end content
Expand Down
6 changes: 3 additions & 3 deletions code-gen-library/WebGridPinHeaderTemplate/Blazor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ igRegisterScript("WebGridPinHeaderTemplate", (ctx) => {
col.pinned = !col.pinned;
grid.markForCheck();
}
return html`<div>
<span style="float:left">${ctx.column.field}</span>
<span style="float:right" onpointerdown='toggleColumnPin("${ctx.column.field}")'>📌</span>
return html`<div style="display:flex;">
<span>${ctx.column.field}</span>
<span style="margin-left: auto;" onpointerdown='toggleColumnPin("${ctx.column.field}")'>📌</span>
</div>`;
}, false);
//end template
6 changes: 3 additions & 3 deletions code-gen-library/WebGridPinHeaderTemplate/React.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export class WebGridPinHeaderTemplateComponent {
public webGridPinHeaderTemplate = (props: {dataContext: IgrColumnTemplateContext}) => {
const column = (props.dataContext as any).column;
return (
<div>
<span style={{float: 'left'}}>{column.field}</span>
<span style={{float: 'right'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
<div style={{display: 'flex'}}>
<span>{column.field}</span>
<span style={{marginLeft: 'auto'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
</div>
);
}
Expand Down
6 changes: 3 additions & 3 deletions code-gen-library/WebGridPinHeaderTemplate/WebComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export class WebGridPinHeaderTemplateComponent {
public webGridPinHeaderTemplate = (ctx: IgcColumnTemplateContext) => {

const column = (ctx as any).column;
return html`<div>
<span style="float:left">${column.field}</span>
<span style="float:right" @pointerdown=${(e: any) => this.toggleColumnPin(column.field)}>📌</span>
return html`<div style="display:flex;">
<span>${column.field}</span>
<span style="margin-left: auto;" @pointerdown=${(e: any) => this.toggleColumnPin(column.field)}>📌</span>
</div>`;
    };
//end content
Expand Down
6 changes: 3 additions & 3 deletions code-gen-library/WebTreeGridPinHeaderTemplate/Blazor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ igRegisterScript("WebTreeGridPinHeaderTemplate", (ctx) => {
col.pinned = !col.pinned;
grid.markForCheck();
}
return html`<div>
<span style="float:left">${ctx.column.field}</span>
<span style="float:right" onpointerdown='toggleColumnPin("${ctx.column.field}")'>📌</span>
return html`<div style="display:flex;">
<span>${ctx.column.field}</span>
<span style="margin-left: auto;" onpointerdown='toggleColumnPin("${ctx.column.field}")'>📌</span>
</div>`;
}, false);
//end template
6 changes: 3 additions & 3 deletions code-gen-library/WebTreeGridPinHeaderTemplate/React.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export class WebTreeGridPinHeaderTemplate {
public webTreeGridPinHeaderTemplate = (props: {dataContext: IgrColumnTemplateContext}) => {
const column = (props.dataContext as any).column;
return (
<div>
<span style={{float: 'left'}}>{column.field}</span>
<span style={{float: 'right'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
<div style={{display: 'flex'}}>
<span>{column.field}</span>
<span style={{marginLeft: 'auto'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export class WebTreeGridPinHeaderTemplate {
public webTreeGridPinHeaderTemplate = (ctx: IgcColumnTemplateContext) => {

const column = (ctx as any).column;
return html`<div>
<span style="float:left">${column.field}</span>
<span style="float:right" @pointerdown=${(e: any) => this.toggleColumnPin(column.field)}>📌</span>
return html`<div style="display:flex;">
<span>${column.field}</span>
<span style="margin-left: auto;" @pointerdown=${(e: any) => this.toggleColumnPin(column.field)}>📌</span>
</div>`;
    };
//end content
Expand Down