ProtectedlowerProtectedmaxProtectedmaxProtectedminProtectedminReadonlynameProtectedrenderedProtectedresolutionProtectedshadowProtectedstyleProtectedstyleProtectedtemplateProtectedtemplateProtectedtimeProtectedupperProtectedcontextProtectedstateProtectedcanProtectedconnectedProtecteddisconnectedWhen the component is disconnected from the DOM all the callbacks will be unregistered
ProtecteddispatchDispatches a debounced time change event to prevent frequent server calls.
Optionalunset: boolean = falseIndicates whether the time will be set to undefined.
ProtectedgetProtectedgetProtectedgetProtectedgetOptionallimit: TimeRangeLimitProtectedgetGet the current time restriction as a formatted query string.
The formatted time restriction as string or undefined if the time restriction is empty.
Retrieves the value associated with the input element of the specified limit.
Optionallimit: TimeRangeLimitOptional parameter specifying the input Element ('upper' or 'lower') for which value is to be fetched.
The raw value retrieved from the input element.
ProtectedgirafeProtectedhideHide the component (display: none).
ProtectedhtmlConvert the string in parameter with uHtml and return it. This allows to convert a string with html in a right html object. For example, htmlUnsafe('
') will return an html div object.Initializes the widget and sets properties of the input elements. Must be called before using the widget.
Configuration options for the time widget.
ProtectedisNOTE REG: We cannot just use truthy here, because javascript comparaison table is really problematic. For example: 0 == false [] == false "" == false And there are cases where we want to check null or undefined, because 0 can be a right value. More here : https://dorey.github.io/JavaScript-Equality-Table/
ProtectedisProtectedrefreshRe-Render the component. The method should be called when the component has already been rendered and needs to be updated.
ProtectedregisterRender the component's template.
ProtectedrenderRenders a hidden span with the name of the component. Useful to render a placeholder for not visible component.
ProtectedshowShow the component (display: block).
ProtectedsimulateIn the templates, sometimes for accessibility reasons, we have to support the KeyDown Event In those case, we often juste want to do the same as the click event when Enter or Space is pressed Then this method can be used : it just calls the click event on the same element
ProtectedsubscribeProtectedunregisterOptionaleventNames: GgUserInteractionEvent | GgUserInteractionEvent[]Protectedunsubscribe
The
TimeWidgetclass is a custom HTML element used to manage and display a time range or time value through one or two sliders or date pickers. It supports two modes (rangeorvalue) and returns date strings formatted according to the specified time resolution and mode. The initialize method needs to be called first to configure the widget with an object of type ITimeOptions.This class must be extended, since it doesn't have a template of its own.