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:
  • Constructor Details

    • EditorInlayHintOptions

      public EditorInlayHintOptions()
  • Method Details

    • getEnabled

      public String getEnabled()
      Returns:
      Enable the inline hints. Defaults to on.
    • setEnabled

      public EditorInlayHintOptions setEnabled(EInlineSuggestMode enabled)
      Parameters:
      enabled - Enable the inline hints. Defaults to on.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setEnabled

      public EditorInlayHintOptions setEnabled(String enabled)
      Parameters:
      enabled - Enable the inline hints. Defaults to on.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getFontFamily

      public String getFontFamily()
      Returns:
      Font family of inline hints. Defaults to editor font family.
    • setFontFamily

      public EditorInlayHintOptions setFontFamily(String fontFamily)
      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

      public Number getFontSize()
      Returns:
      Font size of inline hints. Default to 90% of the editor font size.
    • setFontSize

      public EditorInlayHintOptions setFontSize(Number fontSize)
      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

      public Boolean isPadding()
      Returns:
      Enables the padding around the inlay hint. Defaults to false.
    • setPadding

      public EditorInlayHintOptions setPadding(Boolean padding)
      Parameters:
      padding - Enables the padding around the inlay hint. Defaults to false.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.