Skip to content

Commit ca6a06b

Browse files
committed
(docs) add information about method chaining + update links
1 parent 333d5f0 commit ca6a06b

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

docs/docs/intro.mdx

+15-3
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,18 @@ commands. By default you will also have `clear` command that you can disable wi
247247
option. There is also second default command which is exit, that appear only when you use
248248
[authentication](#???) or [nested interpreters](#???).
249249

250+
251+
## Chaining
252+
253+
Because jQuery Terminal use jQuery, you can use chaining of methods. Because most methods return terminal instance.
254+
255+
```javascript
256+
term.echo('This is').echo('jQuery Terminal');
257+
```
258+
259+
There are more terminal methods that you can use, check [Terminal
260+
Interpreter](/docs/deep-dive/termnal) Guide, for more information.
261+
250262
## Demo
251263

252264
import CodePen from '@site/src/CodePen';
@@ -255,7 +267,7 @@ import CodePen from '@site/src/CodePen';
255267

256268
## See also
257269

258-
* [What you can echo?](#???)
259-
* [Terminal Interpreter](#???)
270+
* [What you can echo?](/docs/deep-divce/echo)
271+
* [Terminal Interpreter](/docs/deep-dive/termnal)
260272
* [All about completion](#???)
261-
* [Coloring the terminal](#???)
273+
* [Coloring the terminal](/docs/deep-dive/formatters)

0 commit comments

Comments
 (0)