Creates a new HTML element that will contain all alerts that are to be shown to the user.
Returns a control that allows to choose the assignee custom field.
The assignee custom field is assumed to be optional (and hence the input is always valid, even if empty).
Returns a control that allows to choose the “finish-to-start” dependency link type.
The bound value is assumed to be required.
Returns a control that allows to choose the issue type custom field.
The issue type custom field is assumed to be optional (and hence the input is always valid, even if empty).
Returns a <select multiple>
control that allows to choose zero or more elements.
The user may choose zero or more elements, so the input is assumed to be always valid.
Returns a “secondary” <select>
control that allows to choose a single element.
The element must differ from the value that (typically) is already the active value of another “primary” control.
If the current value is not available, the control shows “Unknown (ID:
Returns a newly created <select>
control for choosing at most one from a list of option.
The control shows a disabled placeholder option if the current value is empty. If the current value is not available,
the control shows “Unknown (ID:
Updates the application state to the given values in a plain JSON object.
The update is performed within a single S.js transaction.
application state
Plain JSON object. This function cannot rely on static type checking, because the data may be user input.
Updates the state of the settings UI component to the given values in a plain JSON object.
The update is performed within a single S.js transaction.
state of the settings UI component
plain JSON object
Updates the application state to the given values in a plain JSON object.
The update is performed within a single S.js transaction.
application state
plain JSON object
Updates the state of the settings UI component to the given values in a plain JSON object.
The update is performed within a single S.js transaction.
state of the settings UI component
plain JSON object
Two-way binds the given number
data signal with the given <input>
element (note the currying).
Two-way binds the given string
data signal with the given <input>
element (note the currying).
Two-way binds the given data signal with the given <select multiple>
element (note the currying).
Two-way binds the given data signal with the given input
element (note the currying): The element is checked if
and only if the data signal has the given “on”-value.
Returns a newly created object for keeping the computed application state.
Returns a newly created Contributor object with the values from the given plain JSON object.
Plain JSON object. This function cannot rely on static type checking, because the data may be user input.
Creates a new state for the settings UI component.
Returns a newly created object for keeping the user-provided application state.
Returns a newly created object for keeping the computed application state.
Creates a new state for the settings UI component.
Creates a new state for the settings UI component.
Returns a newly created array where each element is the result of invoking ensureElementType()
. If the given value
is not an array, returns the default array.
This function is meant to be used when we cannot trust the type system (typically, user input).
Returns the given value if it is a boolean, or otherwise the given default value.
This function is meant to be used when we cannot trust the type system (typically, user input).
Returns the given value if it is a number, or otherwise the given default value.
This function is meant to be used when we cannot trust the type system (typically, user input).
Returns the given value as string if the type of the value is string
, boolean
, or number
; otherwise,
returns the given default value.
This function is meant to be used when we cannot trust the type system (typically, user input).
If the given signal is changed to the given value, focus on the given HTML element.
One-way binds the href attribute to react to the given signal.
This function is necessary because we want to remove the href attribute if the given signal is the empty URL (as opposed to setting the href attribute to the empty string, which would still be shown as a link in the browser).
Makes an s.js signal jsonable by adding a toJSON
method that extracts its value during JSONization.
Adapted from GitHub project adamhaile/surplus-todomvc.
One-way binds the given data-signal array to react to UI changes in the given HTML element (note the currying).
Creates a new normalized plain JSON value for the given settings.
Normalization means that the YouTrack base URL is the result of toNormalizedUrl().
Returns the normalized URL.
Normalization means returning a syntactically valid URL that ends with a slash (/).
the normalized URL, or the empty string if the given URL is not valid
Creates a new plain JSON value for the given value (which may contain signals or Set
instances).
Function that always throws an error.
The purpose of this function is to be used as a compile-time type completeness check; for instance, in a switch
statement. Calling this function will cause no error only if control-flow-based type analysis infers the argument
type as never
– in other words, if the function call cannot be reached.
One-way binds the presence of CSS classes on the given HTML element to react to the given signal (note the currying).
Generated using TypeDoc
Value for ContributorEditArea.id to indicate an external contributor.