docs: selector engine script type (#5450)

This commit is contained in:
Yury Semikhatsky 2021-02-12 14:30:16 -08:00 committed by GitHub
parent 7e7d3db96d
commit 529e39872f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ Name that is used in selectors as a prefix, e.g. `{name: 'foo'}` enables `foo=my
contain `[a-zA-Z0-9_]` characters.
### param: Selectors.register.script
* langs: java, js
* langs: js
- `script` <[function]|[string]|[Object]>
- `path` <[path]> Path to the JavaScript file. If `path` is a relative path, then it is resolved relative to the
current working directory. Optional.
@ -65,6 +65,12 @@ contain `[a-zA-Z0-9_]` characters.
Script that evaluates to a selector engine instance.
### param: Selectors.register.script
* langs: csharp, java
- `script` <[string]|[path]>
Script that evaluates to a selector engine instance.
### option: Selectors.register.contentScript
- `contentScript` <[boolean]>