Give us feedback
javascript-library
Reactive icon

JavaScript Library

icon_trusted
Stable version 1.0.3 (Compatible with OutSystems 11)
Uploaded on 27 June 2022 by 
5.0
 (1 rating)
javascript-library

JavaScript Library

Documentation
1.0.3

This component will help you develop your applications faster with these JS actions:


ScrollToFirstInputInvalid

This action will scroll to the first invalid input of the form.

Has 3 optional inputs: Behavior, Block, Inline.

behavior

Defines the transition animation. One of auto or smooth. Defaults to auto.

block

Defines vertical alignment. One of start, center, end, or nearest. Defaults to start.

inline

Defines horizontal alignment. One of start, center, end, or nearest. Defaults to nearest.


More info: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView

PreventPast

The only input is the Id of the input that you want to prevent pasting a string in.

GetUserTimezone

No inputs are needed. Will simply return the user's timezone in IANA's format 

More info: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

WidgetClick

Id: the button Id to be triggered

GetWeeks

Returns the weeks of a given month and year. Has the optional input "WeekStartDay" that defines what is the first day of the week: 


0 - Sunday (default)

1 - Monday

...

6 - Saturday

RoundDown

Uses the floor method to round down a decimal to the closest integer.

CopyToClipboard 

Adds the Input "String"to the clipboard.

GetUserLocale

Client action that returns the browser default locale.