gradio
513d21ef - feat: Add autoscroll parameter to HTML component (#11747)

Commit
182 days ago
feat: Add autoscroll parameter to HTML component (#11747) * feat: Add autoscroll parameter to HTML component - Add autoscroll parameter to gr.HTML() component with default value True - Implement auto-scroll functionality in frontend when content changes - Add comprehensive tests for autoscroll parameter - Include demo script showcasing the feature Resolves: https://github.com/gradio-app/gradio/issues/7735 The autoscroll parameter allows users to control whether the HTML component automatically scrolls to the bottom when content is updated, similar to the existing autoscroll behavior in the Chatbot component. Example usage: gr.HTML('content', autoscroll=False) # Disable autoscroll gr.HTML('content', autoscroll=True) # Enable autoscroll (default) * add changeset * test html * fix * changes * autoscroll * format * changes --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Author
Parents
Loading