Optionaloptions: { hide?: boolean } & {Optionalhide?: booleanIf true, the action will hide the annotation, otherwise it will show it.
OptionalannotationReferences?: NutrientViewer.Immutable.List<{ fieldName: string } | { pdfObjectId: number }>OptionalsubActions?: NutrientViewer.Immutable.List<NutrientViewer.Actions.Action> | nullA list of references to annotations, either via the pdfObjectId or a form field name.
If true, the action will hide the annotation, otherwise it will show it.
OptionalsubActions can be chained by adding them to this immutable List.
Returns a new instance of this Record type with all values set to their default values.
Returns a new instance of this Record type with the value for the specific key set to its default value.
Returns the value associated with the provided key, which may be the default value defined when creating the Record factory function.
If the requested key is not defined by this Record type, then notSetValue will be returned if provided. Note that this scenario would produce an error when using Flow or TypeScript.
OptionalnotSetValue: unknownDeeply converts this Record to equivalent native JavaScript Object.
Note: This method may not be overridden. Objects with custom serialization to plain JS may override toJSON() instead.
Shallowly converts this Record to equivalent native JavaScript Object.
PDF action to hide an annotation or form field.
It is an Immutable.Record and thus can be updated using
set(key, value), for example:action.set("hide", true);.When clicking on an annotation with a
HideAction, the annotations specified in itsannotationReferencesproperty will be hidden.Example
Create a new HideAction