diff options
author | Monroe Clinton <contact@monroeclinton.com> | 2021-09-21 22:53:42 -0400 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-09-24 04:53:57 +0330 |
commit | a59010bd97cb74713b338822a983f8d42e05b549 (patch) | |
tree | a985cd4853a4f3298ad2c1859097541692500d90 /Base/res | |
parent | 5f80d8245d1bcdb5b205368ffc2d95acbf3cf59d (diff) | |
download | serenity-a59010bd97cb74713b338822a983f8d42e05b549.zip |
Spreadsheet: Add missing examples
Diffstat (limited to 'Base/res')
-rw-r--r-- | Base/res/js/Spreadsheet/runtime.js | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Base/res/js/Spreadsheet/runtime.js b/Base/res/js/Spreadsheet/runtime.js index 06d636facb..9712eb2680 100644 --- a/Base/res/js/Spreadsheet/runtime.js +++ b/Base/res/js/Spreadsheet/runtime.js @@ -385,7 +385,11 @@ now.__documentation = JSON.stringify({ argc: 0, argnames: [], doc: "Returns a Date instance for the current moment", - examples: {}, + examples: { + "now().toString()": + "Returns a string containing the current date. Ex: 'Tue Sep 21 2021 02:38:10 GMT+0000 (UTC)'", + "now().getFullYear()": "Returns the current year. Ex: 2021", + }, }); repeat.__documentation = JSON.stringify({ @@ -403,7 +407,9 @@ randRange.__documentation = JSON.stringify({ argc: 2, argnames: ["start", "end"], doc: "Returns a random number in the range (`start`, `end`)", - examples: {}, + examples: { + "randRange(0, 10)": "Returns a number from 0 through 10. Ex: 5.185799582250052", + }, }); integer.__documentation = JSON.stringify({ @@ -649,7 +655,9 @@ row.__documentation = JSON.stringify({ argc: 0, argnames: [], doc: "Returns the row number of the current cell", - examples: {}, + examples: { + "row()": "Evaluates to 6 if placed in A6", + }, }); column.__documentation = JSON.stringify({ @@ -657,7 +665,9 @@ column.__documentation = JSON.stringify({ argc: 0, argnames: [], doc: "Returns the column name of the current cell", - examples: {}, + examples: { + "column()": "Evaluates to A if placed in A6", + }, }); here.__documentation = JSON.stringify({ |