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.
auto
smooth
block
Defines vertical alignment. One of start, center, end, or nearest. Defaults to start.
start
center
end
nearest
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.