diff options
| author | Bobby <[email protected]> | 2022-01-26 14:27:46 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-01-26 14:27:46 -0500 |
| commit | 586c2f8e7386e001e69ccaf89c7b200481aaec14 (patch) | |
| tree | 674695b5f748d4328f7e44bda0c6f458a1fc3485 /docs | |
| parent | 228960a756ec4417d5337eaacfffb9212eca2399 (diff) | |
| download | izuku.js-586c2f8e7386e001e69ccaf89c7b200481aaec14.tar.xz izuku.js-586c2f8e7386e001e69ccaf89c7b200481aaec14.zip | |
docs: update docs for title() function
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/frame-methods.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/frame-methods.md b/docs/frame-methods.md index d830df4..c4fcef0 100644 --- a/docs/frame-methods.md +++ b/docs/frame-methods.md @@ -39,6 +39,21 @@ frame.header(); // frame.header([]); ``` +### `title()`  + +The `title()` method is used to modify the title of the frame. Title is optional. + +> **Note:** If you use title method without passing any argument, it will reset the title to default title (Remember: title is optional). + +```js +// modify the title +const newTitle = 'New Title'; +frame.title(newTitle); + +// Reset the title to default +frame.title(); +``` + ### `column()`  The `column()` method is used to get the column data of a particular column. It takes the column name or the index as an argument. It can also take an array of column names or indexes as an argument to get multiple columns. |
