Class EditorInlayHintOptions
java.lang.Object
org.primefaces.shaded.json.JSONObject
org.primefaces.extensions.model.monacoeditor.EditorInlayHintOptions
- All Implemented Interfaces:
Serializable
public class EditorInlayHintOptions
extends org.primefaces.shaded.json.JSONObject
implements Serializable
Control the behavior and rendering of the inline hints.
- See Also:
-
Field Summary
Fields inherited from class org.primefaces.shaded.json.JSONObject
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetEnabled(Boolean enabled) setFontFamily(String fontFamily) setFontSize(Number fontSize) setPadding(Boolean padding) Methods inherited from class org.primefaces.shaded.json.JSONObject
accumulate, append, clear, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getMapType, getNames, getNames, getNumber, getString, has, increment, isDecimalNotation, isEmpty, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optDouble, optDouble, optEnum, optEnum, optFloat, optFloat, optInt, optInt, optJSONArray, optJSONObject, optJSONObject, optLong, optLong, optNumber, optNumber, optQuery, optQuery, optString, optString, put, put, put, put, put, put, put, put, putOnce, putOpt, query, query, quote, quote, remove, similar, stringToNumber, stringToValue, testValidity, toJSONArray, toMap, toString, toString, valueToString, wrap, write, write
-
Constructor Details
-
EditorInlayHintOptions
public EditorInlayHintOptions()
-
-
Method Details
-
isEnabled
- Returns:
- Enable the inline hints. Defaults to
true.
-
setEnabled
- Parameters:
enabled- Enable the inline hints. Defaults totrue.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getFontFamily
- Returns:
- Font family of inline hints. Defaults to editor font family.
-
setFontFamily
- Parameters:
fontFamily- Font family of inline hints. Defaults to editor font family.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getFontSize
- Returns:
- Font size of inline hints. Default to 90% of the editor font size.
-
setFontSize
- Parameters:
fontSize- Font size of inline hints. Default to 90% of the editor font size.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isPadding
- Returns:
- Enables the padding around the inlay hint. Defaults to
false.
-
setPadding
- Parameters:
padding- Enables the padding around the inlay hint. Defaults tofalse.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-