Add input field for the name of the named range to add
Change-Id: I37fdb1a3e28ef0b3cc298ec4d5dc8620ba919190
This commit is contained in:
parent
1d6d01a928
commit
790069ecbc
1 changed files with 4 additions and 3 deletions
7
loleaflet/dist/framed.html
vendored
7
loleaflet/dist/framed.html
vendored
|
@ -85,6 +85,7 @@
|
|||
window.frames[0].postMessage(JSON.stringify({'MessageId': 'Host_PostmessageReady'}), '*');
|
||||
// Our form below takes input in A1 format, the Python script wants zero-based indexes and width and height
|
||||
var abc = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
var name = document.forms['add-named-range-form'].elements['name'].value;
|
||||
var x0 = document.forms['add-named-range-form'].elements['x0'].value;
|
||||
var x1 = document.forms['add-named-range-form'].elements['x1'].value;
|
||||
var y0 = parseInt(document.forms['add-named-range-form'].elements['y0'].value);
|
||||
|
@ -101,7 +102,7 @@
|
|||
'y0': {'type': 'long', 'value': y0-1},
|
||||
'width': {'type': 'long', 'value': x1-x0+1},
|
||||
'height': {'type': 'long', 'value': y1-y0+1},
|
||||
'name': {'type': 'string', 'value': 'N' + Date.now().toString()}
|
||||
'name': {'type': 'string', 'value': name}
|
||||
}
|
||||
}),
|
||||
'*');
|
||||
|
@ -167,8 +168,8 @@
|
|||
</form>
|
||||
|
||||
<form id="add-named-range-form">
|
||||
<!-- FIXME: Add input fields for the position, size, and name of the range -->
|
||||
Click <button onclick="callAddNamedRange(); return false;">here</button> to add a new named range on Sheet1 from (A1 syntax)
|
||||
Click <button onclick="callAddNamedRange(); return false;">here</button> to add a new named range called
|
||||
<input type="text" name="name"> on Sheet1 from (A1 syntax)
|
||||
<input type="text" name="x0" value="A" size="1" pattern="[A-Z]{1}"> <input type="number" name="y0", min="1" max="999" value="1"> to
|
||||
<input type="text" name="x1" value="B" size="1" pattern="[A-Z]{1}"> <input type="number" name="y1", min="1" max="999" value="3">.
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue