new OnLoad(file_tagopt, x_tagopt, y_tagopt, preview_tagopt)
Generate a matrix from data passed in the browser
assign to window.onload to use
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
file_tag |
str |
<optional> |
fileInput | the element id of a text input, to contain number of columns, default 'fileInput'. |
x_tag |
str |
<optional> |
x_len | the element id of a text input, to contain number of columns, default 'x_len'. |
y_tag |
str |
<optional> |
y_len | the element id of a text input, to contain number of rows, default 'y_len'. |
preview_tag |
str |
<optional> |
preview | the element id in which to display the string representation of the loaded matrix or any error, default 'preview'. |
- Source: