Within a table, I have a reference tag and then an input field. I tried everything, but the input field is always moving below the reference tag (while a normal text field using span is properly aligned with the <a href>
tag.
Here is an example:
<td *ngFor="let col of table.columns; let i=index [ngStyle]="col.style" [class]="col.styleClass"
[style.display]="col.hidden ? 'none' : 'table-cell'"
(click)="onRowClick($event)" >
<a href="#" *ngIf="(i==table.expanderColumn)" class="ui-treetable-toggler fa fa-fw ui-c" [ngClass]="{'fa-caret-down':node.expanded,'fa-caret-right':!node.expanded}"
[ngStyle]="{'margin-left':level*16 + 'px','visibility': isLeaf() ? 'hidden' : 'visible'}"
(click)="toggle($event)"
[title]="node.expanded ? labelCollapse : labelExpand">
</a>
<input type="text" [(ngModel)]="row.data[column.fieldNameOrPath]">
</td>
In reality my code is slightly different and the input field is coming from a template, but this shouldn't be the issue I guess.
How can I get the input field right beside the tag?