An intrinsic object that provides basic mathematics functionality and constants.
The globally available constructor for the Quill text editor used by the TextEditor widget.
Contains information about the current browser environment, such as which browser the user is using etc.
Finds and returns a widget
Note to typescript users: You should define a method that takes a widget variables and widget constructor, and check whether the widget is of the given type. If so, you can return the widget and cast it to the desired type:
function getWidget<T extends PrimeFaces.widget.BaseWidget>(widgetVar, widgetClass: new() => T): T | undefined {
const widget = PrimeFaces.widget[widgetVar];
return widget !== undefined && widget instanceof constructor ? widgetClass : undefined;
}
The widget variable of a widget.
The widget instance, or undefined
if no such widget exists
currently.
Autosize is a small, stand-alone script to automatically adjust textarea height to fit text. Attaches autosize to the given element or elements.
The TEXTAREA element to which to attach autosize.
Generated using TypeDoc
An object that can be used to emulate classes and a class hierarchy in JavaScript. This works even for old browsers that do no support the native
class
syntax yet. Note however, that this should be mostly compatible with the newclass
syntax of JavaScript, so consider creating your own widgets as a class:Note to typescript users: You will need to specify the type parameters explicitly. The best way to do so is by defining the interfaces for the classes separately:
Now you can use it normally: