Skip to content

Button

Buttons are primarily regular button components for performing actions.

Property

NoItemInput ValueDefault ValueAction PropertyTypeAction Default ValueDescription
1IDStringAuto-generatedidstringAuto-generatedThe [id] property cannot be set by action.
2Label LStringButtonlabelstringButtonButton label
3WidthString90widthstring90Component width
4HeightString40heightstring40Component height
5XStringxstringX coordinate position
6YStringystringY coordinate position
7LockBooleanOFFlockbooleanfalseWhen ON, the component stays fixed even when the screen is scrolled.
When OFF, the component moves along with the screen scroll.
Added in v4.1.0.
8StyleSelection
1. Filled
2. Outlined
3. Text
FilledvariantstringcontainedButton style
9SizeSelection
1. Small
2. Medium
3. Large
4. None
NonesizestringnoneButton size specification
Added in v3.3.0
10Font SizeNumber14fontSizenumber14Button font size specification
Added in v3.3.0
11ColorString
Color Picker
colorstringButton color
12Label ColorString
Color Picker
labelColorstringButton Label color
Added in v3.4.0
13DisabledBooleanOFFdisabledbooleanfalseComponent disabled/enabled state
14VisibilityBooleanONvisibilitybooleantrueComponent visibility state
15Start IconSelectionNonestartIconstringIcon displayed before the button
16End IconSelectionNoneendIconstringIcon displayed after the button
17Alert DialogSelection
1. ON
2. OFF
OFFAlert dialog visibility state
18Alert Value LTable
[Detail 1]
[Detail 1]alertValues[Detail 1]Alert dialog content
19TooltipStringtooltipstringTooltip text
20Click EventSelection
1. None
2. NEXT UI
3. URL
4. WINDOW
5. UI SCRIPT
6. Action
7. Upload
8. DIALOG
9. Detached Action
ActionClick event setting
UI SCRIPT became available for selection in v4.0.0.
Detached Action became selectable in v4.1.0.
21NEXT UISelection
1. None
2. [UI Label]
nextUistringDestination UI
22URLStringurlstringDestination URL
23DIALOG UISelection
1.None
2.[Dialog UI Label]
dialogUistringDestination Dialog UI
Added in v3.3.0
24Detached ActionSelection
1. [Detached Action ID]
detachedActionstringSet a detached action
Added in v4.1.0.
25Tab FocusSelection
1.[Component ID]
tabFocusstringNext focus component specification
Added in v3.3.0

[Details 1] Alert Value

The default status is registered as follows Edit the value columns for the items "Title","Contents", "Cancel", and "Submit".

ItemValue
TitleAre you sure?
ContentsOnce you execute, all the previous changes will be lost and existing users will not be able to view the last changes. This cannot be reverted.
CancelCancel
SubmitSubmit

[Details 2] External Service Site Integration

External Service Site Integration with WebPerformer-NX is possible with the following specifications

  • If a callback URL is specified, the user will be redirected to that URL after processing the external service site.
  • When migrating to a callback URL, pass data to the callback URL using query parameters

The definition procedure for External Service Site Integration that conforms to the above specifications is as follows

  1. Select "WINDOW" in "Click Event"
  2. Set the URL for the transition to the external service site in the URL field displayed.
  1. Define window action "Open".
    • Dynamically create the URL to open the window.
    • Specify the following for the callback URL parameter. If you are not using a custom domain: {Parameter}=https://{envid}.webperformer.jp/callback.html If you are using a custom domain: {Parameter}=https://{customdomain}/callback.html
    • The created URL is set in the url property. Example) $ui.button_id.url
  2. Define the window action "Close".
    • Receive a parameter of the transition destination URL with $param.{query parameter name}.
    • Bind the obtained value to the UI if necessary.

External Service Site Integration works as follows.

  1. Click on the settings component to open the external service site with the specified URL in a new tab.
  2. Complete the external service site processing.
  3. Navigate to the callback URL.
  4. Close the external service site with the process from the callback page.
  5. The action defined in the window action "Close" is executed.

[Details 3] Dialog Integration

Transition to a dialog UI is possible only from a screen UI. The procedure for defining a transition to a dialog UI is as follows.

  1. Select "DIALOG" for [Click Event].
  2. Set the target dialog UI in the displayed DIALOG UI field.
  1. Define the dialog action "Open".
  • You can pass parameters such as $param.{query parameter} when transitioning to the dialog UI.
  1. Define the dialog action "Close".
  • You can obtain information from the destination dialog UI using $param.{query parameter name}.
  • Bind the obtained values to the UI as needed.

The behavior during dialog integration is as follows.

  1. Clicking the configured component displays the dialog UI as a popup.
  2. Perform processing in the dialog UI.
  3. Execute $fn.closeDialog() on the dialog UI side.
  4. The action defined in dialog action "Close" is executed.

Event

Event nameDescription
onclickFor the click event "Action": Execute an action when clicked.
For the click event "Upload": The action is executed when the "Open (O)"button is clicked after the file is selected.
For the click event "WINDOW": The operation is described in "[Detail 2] External Service Site Integration".
For the click event "DIALOG": The operation is described in "[Details 3] Dialog Integration".
For the click event "UI SCRIPT": Executes the UI SCRIPT when clicked.
For the click event "Detached Action": Executes the detached action when clicked.