FoxitPDFSDKforWeb  7.1.1
Foxit PDF SDK for Web
FragmentComponentOptions Interface Reference

component options in fragment config property. More...

Inheritance diagram for FragmentComponentOptions:
ComponentOptions

Public Attributes

string target
 target component name in template. This property is required when the action value equals to FRAGMENT_ACTION.EXT
Examples:
More...
 
- Public Attributes inherited from ComponentOptions
boolean active = false
 Initial activation state. More...
 
boolean canBeDisabled =false
 Wheher or not this component can be disabled, if true, disable method will be not working. More...
 
boolean disabled =false
 initial disable state More...
 
boolean visible = true
 Initial visibility state, if false, this component will be not displaying on screen after mounted. More...
 

Detailed Description

component options in fragment config property.

Since
7.0.0

Member Data Documentation

◆ target

string FragmentComponentOptions::target

target component name in template. This property is required when the action value equals to FRAGMENT_ACTION.EXT
Examples:

  1. ext action config:
    {
    target: 'exiting-component-name-in-fragments', // target property of UIFragmentOptions, is not same as the target of FragmentComponentOptions
    action: UIExtension.UIConsts.FRAGMENT_ACTION.EXT,
    config: {
    // target: '', // target value in this fragment will be ignored
    'some-property': 'value' // override some-property of the component options which names 'exiting-component-name-in-fragments'
    }
    }
  2. multiple configs:
    {
    target: 'exiting-component-name-in-fragments'
    action: UIExtension.UIConsts.FRAGMENT_ACTION.APPEND,
    template: `
    <div class="custom-button-list">
    <xbutton name="button0"></xbutton>
    <xbutton name="button1" icon-class="icon-css-class"></xbutton>
    </div>
    `,
    config: [{
    target: 'button0',
    text: 'button0'
    }, {
    target: 'button1',
    iconCls: 'other-icon-css-class' // override icon-class attribute of button1
    }]
    }
    Since
    7.0.0

Foxit Software Corporation Logo
@2019 Foxit Software Incorporated. All rights reserved.