mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:07:35 +00:00
Spreadsheet: Document the behaviour of the 'R' function/tag
This commit is contained in:
parent
a2113909c3
commit
facd7fe05b
1 changed files with 15 additions and 1 deletions
|
@ -34,11 +34,12 @@ function split(str, sep) {
|
||||||
splitIndex = str.indexOf(sep);
|
splitIndex = str.indexOf(sep);
|
||||||
if (splitIndex == -1) {
|
if (splitIndex == -1) {
|
||||||
if (str.length) parts.push(str);
|
if (str.length) parts.push(str);
|
||||||
return parts;
|
break;
|
||||||
}
|
}
|
||||||
parts.push(str.substring(0, splitIndex));
|
parts.push(str.substring(0, splitIndex));
|
||||||
str = str.slice(splitIndex + sep.length);
|
str = str.slice(splitIndex + sep.length);
|
||||||
}
|
}
|
||||||
|
return parts;
|
||||||
}
|
}
|
||||||
|
|
||||||
function R(fmt, ...args) {
|
function R(fmt, ...args) {
|
||||||
|
@ -106,6 +107,19 @@ range.__documentation = JSON.stringify({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
R.__documentation = JSON.stringify({
|
||||||
|
name: "R",
|
||||||
|
argc: 1,
|
||||||
|
argnames: ["range specifier"],
|
||||||
|
doc:
|
||||||
|
"Generates a list of cell names in a rectangle defined by " +
|
||||||
|
"_range specifier_, which must be two cell names " +
|
||||||
|
"delimited by a comma ':'. Operates the same as `range`", // TODO: Add support for hyperlinks.
|
||||||
|
examples: {
|
||||||
|
"R`A1:C4`": "Generate the range A1:C4",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
select.__documentation = JSON.stringify({
|
select.__documentation = JSON.stringify({
|
||||||
name: "select",
|
name: "select",
|
||||||
argc: 3,
|
argc: 3,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue