Skip to content

map and access to the row data #46

@mgholam

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

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