I just added a Line to a Forge Macro and noticed it seams to create a second Page when i add a sixteenth Line in the Table.
Is there a way around this? Can i show 20 lines or turn off Paging all together?
Thanks
Best Wishes
Michael
I just added a Line to a Forge Macro and noticed it seams to create a second Page when i add a sixteenth Line in the Table.
Is there a way around this? Can i show 20 lines or turn off Paging all together?
Thanks
Best Wishes
Michael
Hi Michael,
In UI kit, you can set the rowsPerPage
prop to 0
to disable pagination. See https://developer.atlassian.com/platform/forge/ui-kit-components/table/ for the full reference.
Let me know if this helps!
Thanks for the Tip. Sadly i am a noob in javascript and react.
So i tried this:
return (
<Table rowsPerPage="0" >
<Head>
<Cell></Cell>
</Head>
{table_map.map(element => (
<Row>
<Cell><Text format="markup"><Strong>{element.label}</Strong></Text></Cell>
<Cell>{element.user?<Avatar accountId={element.value} />:<Text content={element.value}/>}</Cell>
</Row>
))}
</Table>
);
but i get a Render Error.
I tried it without the āā around the 0 but then i get a Syntax Error.
Thanks for your help.
Best Wishes
Michael
Hi Michael,
Can you please provide the render error for me to investigate?
Cheers,
Dan
When i remove the rowsPerPage="0"
The Macro is rendered without Error.
@danielwinterw Is the Screenshot enough, or do you need more Information?
Thanks again
It worked.
@AleksanderMierzwick1 Thanks for your help
Hi Michael,
Iām glad you found a solution
I have tracked this in the Forge feedback board as a bug. Ideally either option should work, although it seems to currently be checking strictly on the type (in this case a string vs a number).