scrollbars([horizontal_or_both], [vertical])
Class: DocumentEditor. Method inherited from ScrollableComponent.
Description:
Sets or gets scroll bars visibility for horizontal and vertical scroll bars.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
boolean | null | Scrollbars |
|
|
|
boolean | null |
|
Returns:
Returns this component if at least one argument is provided, otherwise returns current state of both scroll bars: {h:boolean|null, v: boolean|null}.
Type: this | Scrollbars
Examples:
textarea.scrollbars(true); // makes both scroll bars always visible
textarea.scrollbars(false, null); // makes horizontal scroll bar hidden, but vertical will become visible as needed
textarea.scrollbars({horizontal: false, vertical: null}); // makes horizontal scroll bar hidden, but vertical will become visible as needed
