Service for retrieving various PDFFormProperty instances for fields/widgets, facilitating UI interactions such as property dialogs.
More...
|
| appendAdditionalAction (widget:Widget, {trigger, actionData }:{ trigger:WidgetActionTriggerEvents, actionData:ActionSpecification}) |
| Appends an additional action to the widget. This method appends the action specified by actionData to the widget's additional actions for the given trigger , different from the AdditionalAction.addAction method, this method supports the undo/redo operation. More...
|
|
| getActions () |
| Retrieves the actions of the widget. More...
|
|
| getAlignment () |
| Retrieves the text alignment property of the text field. More...
|
|
| getAllActions () |
| Gets the property for manipulation all action data (including action data and additional action data) of the widget. More...
|
|
| getAlternateName () |
| Retrieves the alternate name property. More...
|
|
| getCheckedByDefualtProperty () |
| Retrieves the checked by default property for the checkbox or radio-button. More...
|
|
| getChoiceOptionsProperty () |
| Retrieves the property for the options of the field. More...
|
|
| getDefaultValue () |
| Retrieves the default value property of the text field. More...
|
|
| getDirectionRTL () |
| Retrieves the text direction property of the widget. More...
|
|
| getExportValueProperty () |
| Retrieves the normal caption string property for the checkbox or radio-button. More...
|
|
| getFieldFlagOptions () |
| Retrieves the flags property of the field. More...
|
|
| getFieldName () |
| Retrieves the field name property. More...
|
|
| getFieldReadonlyProperty () |
| Retrieves the 'readonly' property, extracted from the field's flags. Indicates whether the field is read-only and cannot be modified by the user. More...
|
|
| getFieldRequiredProperty () |
| Retrieves the 'required' property , extracted from the field's flags. Indicates whether the field must have a value at the time it is exported by a submit-form action. More...
|
|
| getHighlightingMode () |
| Retrieves the highlighting mode property for the push-button widget. More...
|
|
| getIconCaptionRelation () |
| Retrieves the relation of the icon and caption of the form widget. More...
|
|
| getMaxLengthProperty () |
| Retrieves the maximum length property of the text field. More...
|
|
| getMKCaptionOptions () |
| Retrieves the caption options of the form widget. More...
|
|
| getMKIconProperty () |
| Retrieves the MKIcon property of the image button widget based on the user-selected gesture state. More...
|
|
| getNormalCaptionProperty () |
| Retrieves the normal caption string property for the checkbox or radio-button. More...
|
|
| getRect () |
| Retrieves the rect property of the widget. More...
|
|
| getSelectedFields () |
| Gets the currently selected fields. More...
|
|
| getSelectedWidgets () |
| Gets the currently selected widgets. More...
|
|
| getVisibleType () |
| Retrieves the visible type information property, extracted from the widget's flags. This property indicates the visibility state of the widget, including whether it is hidden, not viewable, or has print permissions. More...
|
|
| getWidgetBorderColor () |
| Retrieves the border-color property of the widget. More...
|
|
| getWidgetBorderStyle () |
| Retrieves the border style property of the widget. More...
|
|
| getWidgetBorderWidth () |
| Retrieves the border width property of the widget. More...
|
|
| getWidgetFillColor () |
| Retrieves the widget's fill-color property. More...
|
|
| getWidgetFont () |
| Retrieves the font object property of the widget. More...
|
|
| getWidgetOrientation () |
| Retrieves the orientation property of the widget. The rotation is returned in degrees (0, 90, 180, or 270). More...
|
|
| getWidgetTextColor () |
| Retrieves the text color property of the widget. More...
|
|
| getWidgetTextSize () |
| Retrieves the text size property of the widget. More...
|
|
async | removeAction (widget:Widget, { trigger, actionObjNumber }:RemoveActionOptions) |
| Removes actions from the specified widget. More...
|
|
| updateAction (widget:Widget, actionObjNumber:number, oldActionData:ActionData, newActionData:ActionData) |
| Updates a action of the widget. More...
|
|
| updateAdditionalAction (widget:Widget, actionData:{ trigger:AnnotActionTriggerEvents, actionObjNumber:number, oldActionData:ActionData, newActionData:ActionData }) |
| Updates an additional action of the widget. More...
|
|
| addDestroyHook (...hooks) |
| Add a function to destroyHooks list, which will be called during destroy. More...
|
|
| destroy () |
|
| ownsTo (owner) |
| Establishes an ownership relationship where this instance will be destroyed when the owner is destroyed. Additionally, the owner will be automatically removed from the destroyHooks list when this instance is destroyed. More...
|
|
Service for retrieving various PDFFormProperty instances for fields/widgets, facilitating UI interactions such as property dialogs.
(async () => {
const formDesigner = await pdfui.getAddonInstance('FormDesigner')
const service = formDesigner.getPDFFormPropertiesService();
const property = service.getFieldName();
property.ownsTo(someUIXComponentOrDisposableInstance);
property.onChange((hasValue, value) => {
if(!hasValue) {
console.log('no form widget activated!');
return;
}
console.log(property.available, property.visible, property.hasValue, property.value);
console.log('Current activated field name is: ' + value)
})
})()
- Since
- 11.0.0
- See also
- Disposable
-
Disposable.ownsTo
-
FormDesignerAddon.getPDFFormPropertiesService
-
PDFFormProperty<T>
-
Component