Skip to content

Could I disable the two-way binding? #1529

Description

@wannadream

Our user is asking us to create a data table with around 15,000 rows. I realized that it does not work with Polymer. I think the the component is trying to digesting the whole data which leads to a death of the browser. Is there a way to make the choice by our own decision on two-way binding?

Activity

  1. arthurevans commented on May 14, 2015

    @arthurevans

    You don't say what version you're using. Two-way binding is optional in 0.8+, but I don't think that's going to get you to where you want to be. If you're trying to put 15,000 rows in the DOM at one time, that's basically going to be a bad user experience no matter what.

    You probably want some kind of virtualized list view, like core-list. That element hasn't been ported to 0.9 yet, though.

  2. wannadream commented on May 14, 2015

    @wannadream
    Author

    Thanks, Arthur.
    I think I downloaded 0.5. I will try the new one.

  3. rgthree commented on May 19, 2015

    @rgthree

    If you're trying to put 15,000 rows in the DOM at one time, that's basically going to be a bad user experience no matter what.

    Just to be clear, the vanilla DOM is very efficient at putting 15,000 rows in at one time. Takes an avg of 150ms on my Chrome desktop and scrolls and behaves just fine. http://fiddle.jshell.net/rgthree/pv4d449n/

  4. arthurevans commented on May 19, 2015

    @arthurevans

    @rgthree It will definitely work, my point was that it wasn't a good user experience. On Chrome desktop, it scrolls OK, but I wouldn't call it a good user experience.

    If I just scroll from one end to the other with the trackpad, it takes me 30 seconds or more to get to the end. If I try to scroll using the scroller thumb, the smallest jump I get is about 50 items on a window 30 items high. The only way I would be likely to use a table like this would be Ctrl+F/Cmd+F.

  5. kevinpschaaf commented on May 21, 2015

    @kevinpschaaf
    Member

    To opt-out of two-way binding, use [[...]] square-bracket binding annotations.

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