Skip to content

map and access to the row data #46

Description

@mgholam

I was wondering how we can have access to row data in the map function :

weld(document.getElementById("data"), page, 
          {
            map: function(parent, element, row) {
                if (key === 'title') {
                    element.setAttribute('href', row.url);
                                        element.innerText = row.title;
                    return true;
                }
             }
          });

This would make more sense and allow for a more powerful templates

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions