Html Area
Last updated
Was this helpful?
Last updated
Was this helpful?
(part of package '') Extends designtime/SolutionModel: Extends runtime:
A Servoy Extra Component that provides a rich HTML editing area.
This is a reference page; many components have detailed usage guides .
Bound data provider identifier for the HTML content. Type:
Flag indicating whether HTML tags should be displayed. Type:
Flag indicating whether the HTML area is editable. Type: Default Value: true
Flag indicating whether the HTML area is enabled for user interaction. Type: Default Value: true
Fired when an action is triggered in the HTML area.
Parameters:
Fired when the HTML content changes.
Parameters:
Fired when the HTML area gains focus.
Parameters:
Fired when the HTML area loses focus.
Parameters:
Fired when the HTML area is right-clicked.
Parameters:
Gets the plain text for the formatted Html Area.
Example:
Returns the x scroll location of specified element - only for an element where height of element is less than the height of element content. NOTE: getScrollX() can be used with getScrollY() to set the scroll location of an element using the setScroll function.
For Example:
Example:
Returns the y scroll location of specified element - only for an element where height of element is less than the height of element content. NOTE: getScrollY() can be used with getScrollX() to set the scroll location of an element using the setScroll function.
For Example:
Example:
Returns the currently selected text in the specified Html Area.
Example:
Replaces the selected text; if no text has been selected, the replaced value will be inserted at the last cursor position.
Example:
Parameters:
Set the focus to this Html Area.
Example:
Parameters:
Selects all the contents of the Html Area.
Example:
Sets the scroll location of an element. It takes as input the X (horizontal) and Y (vertical) coordinates - starting from the TOP LEFT side of the screen - only for an element where the height of the element is greater than the height of element content NOTE: getScrollX() can be used with getScrollY() to return the current scroll location of an element; then use the X and Y coordinates with the setScroll function to set a new scroll location.
For Example:
Example:
Parameters:
Placeholder text displayed when no HTML content is present. Type:
Flag indicating whether the HTML area is read-only. Type:
Min height of the html editor, set only in responsive forms. Type: Default Value: 300
Configuration for the scrollbars in the HTML area. Type:
CSS style classes applied to the HTML area component. Type:
Tab sequence order for keyboard navigation. Type:
The HTML content displayed in the editor. Type:
Tooltip text displayed when hovering over the HTML area. Type:
Flag indicating whether the HTML area is visible. Type:
{} event The event object containing details about the action event.
{} oldValue The previous HTML content.
{} newValue The new HTML content.
{} event The event object associated with the data change.
Returns: {}
{} event The event object containing details about the focus gained event.
{} event The event object containing details about the focus lost event.
{} event The event object containing details about the right-click event.
Returns: The plain text
Returns: The x scroll location in pixels.
Returns: The y scroll location in pixels.
Returns: The selected text in the Html Area.
{} selectedText The replacement text
Returns: The new content after replace.
{} [mustExecuteOnFocusGainedMethod] If false will not execute the onFocusGained method; the default value is true[0m
{} x The X coordinate of the htmlarea scroll location in pixels
{} y The Y coordinate of the htmlarea scroll location in pixels