{"action":"created","issue":{"url":"https://api.github.com/repos/brendand/mbtablegrid/issues/25","labels_url":"https://api.github.com/repos/brendand/mbtablegrid/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/brendand/mbtablegrid/issues/25/comments","events_url":"https://api.github.com/repos/brendand/mbtablegrid/issues/25/events","html_url":"https://github.com/brendand/mbtablegrid/issues/25","id":47790081,"number":25,"title":"Copy/paste support","user":{"login":"brendand","id":586075,"avatar_url":"https://avatars.githubusercontent.com/u/586075?v=3","gravatar_id":"","url":"https://api.github.com/users/brendand","html_url":"https://github.com/brendand","followers_url":"https://api.github.com/users/brendand/followers","following_url":"https://api.github.com/users/brendand/following{/other_user}","gists_url":"https://api.github.com/users/brendand/gists{/gist_id}","starred_url":"https://api.github.com/users/brendand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendand/subscriptions","organizations_url":"https://api.github.com/users/brendand/orgs","repos_url":"https://api.github.com/users/brendand/repos","events_url":"https://api.github.com/users/brendand/events{/privacy}","received_events_url":"https://api.github.com/users/brendand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brendand/mbtablegrid/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-05T01:41:31Z","updated_at":"2015-03-01T19:35:02Z","closed_at":null,"body":"Copying a selection of cells should put the content as text onto the clipboard in a tab/linefeed delimited format. Pasting of tab/linefeed delimited text should be the same as typing the values into the cells. E.g. if the column has a formatter on it, if the content isn't in the right format, it should fail to paste the content into that cell but succeed for the rest where it can."},"comment":{"url":"https://api.github.com/repos/brendand/mbtablegrid/issues/comments/76625924","html_url":"https://github.com/brendand/mbtablegrid/issues/25#issuecomment-76625924","issue_url":"https://api.github.com/repos/brendand/mbtablegrid/issues/25","id":76625924,"user":{"login":"Dejal","id":1318849,"avatar_url":"https://avatars.githubusercontent.com/u/1318849?v=3","gravatar_id":"","url":"https://api.github.com/users/Dejal","html_url":"https://github.com/Dejal","followers_url":"https://api.github.com/users/Dejal/followers","following_url":"https://api.github.com/users/Dejal/following{/other_user}","gists_url":"https://api.github.com/users/Dejal/gists{/gist_id}","starred_url":"https://api.github.com/users/Dejal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dejal/subscriptions","organizations_url":"https://api.github.com/users/Dejal/orgs","repos_url":"https://api.github.com/users/Dejal/repos","events_url":"https://api.github.com/users/Dejal/events{/privacy}","received_events_url":"https://api.github.com/users/Dejal/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T19:35:02Z","updated_at":"2015-03-01T19:35:02Z","body":"Yes, it'd need some logic to check that each value is compatible -- that the cell type works (e.g. pasting a string into an image cell should fail, and vice versa), and if a text cell with a formatter, that that is compatible.  Cells like popups would require the text to match a popup value.\r\n\r\nAdding additional rows to fit the pasted values is the right approach, and easy enough. \r\n\r\nMaybe should add additional columns if needed too, though could ignore those values.  If we did add columns, we'd have to decide how smart to make it -- only add text cells, or look at each value (for the new columns) and add suitable cells, e.g. image.  The main determining factor for this will be your use case: does it make sense to add additional columns via paste for Tap Forms?"}}