Sitelet https://github.com/rx-angular/rx-angular/issues/1869
Skip to content

rxVirtualView - Both placeholder and viewContent not visible initially #1869

Description

@shyamal890

Description

Here's the relevant code for

<div class="st-table-cell-virtual-wrap"
                    [class.st-sticky]="$index == 0"
                    rxVirtualView
                    [useContainment]="false">
                    <st-task-row-cell
                        *rxVirtualViewContent
                        class="st-table-cell-wrap"
                        [class.st-sticky]="$index == 0"
                        [cell_index]="$index"
                        >
                    </st-task-row-cell>
                    <div *rxVirtualViewPlaceholder
                        class="st-table-cell st-table-cell-{{ $index }} d-flex align-items-center" 
                        [style.width.px]="column.width"></div>
                </div>

Initially when the table is rendered both *rxVirtualViewContent as well as *rxVirtualViewPlaceholder are not rendered. Here's the screenshot:

Image

Additional info, I am rendering the list through *rxFor

Environment

@rx-angular/template": "^19.2.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions