Namespace: Util#
Common.Util
Table of contents#
Classes#
Functions#
Functions#
cssNames#
▸ cssNames(...classNames
): string
Parameters#
Name | Type |
---|---|
...classNames |
IClassName [] |
Returns#
string
getAppVersion#
▸ getAppVersion(): string
Returns#
string
openBrowser#
▸ openBrowser(url
): Promise
<void
>
Opens a link using the program configured as the default browser on the target platform. Will reject URLs with a scheme other than http or https to prevent programs other than the default browser running.
Parameters#
Name | Type | Description |
---|---|---|
url |
string |
The URL to open |
Returns#
Promise
<void
>
openExternal#
▸ openExternal(url
): Promise
<void
>
Opens a link using the program configured as the default browser on the target platform. Will reject URLs with a scheme other than http or https to prevent programs other than the default browser running.
Parameters#
Name | Type | Description |
---|---|---|
url |
string |
The URL to open |
Returns#
Promise
<void
>
prevDefault#
▸ prevDefault<E
>(callback
): (evt
: E
) => any
Type parameters#
Name | Type |
---|---|
E |
extends Event | SyntheticEvent <Element , Event > |
Parameters#
Name | Type |
---|---|
callback |
(evt : E ) => any |
Returns#
fn
▸ (evt
): any
Parameters#
Name | Type |
---|---|
evt |
E |
Returns#
any
stopPropagation#
▸ stopPropagation(evt
): void
Parameters#
Name | Type |
---|---|
evt |
Event | SyntheticEvent <Element , Event > |
Returns#
void