Button
Buttons are primarily regular button components for performing actions.
Property
| No | Item | Input Value | Default Value | Action Property | Type | Action Default Value | Description |
|---|---|---|---|---|---|---|---|
| 1 | ID | String | Auto-generated | id | string | Auto-generated | The [id] property cannot be set by action. |
| 2 | Label | String | Button | label | string | Button | Button label |
| 3 | Width | String | 90 | width | string | 90 | Component width |
| 4 | Height | String | 40 | height | string | 40 | Component height |
| 5 | X | String | x | string | X coordinate position | ||
| 6 | Y | String | y | string | Y coordinate position | ||
| 7 | Style | Selection 1. Filled 2. Outlined 3. Text | Filled | variant | string | contained | Button style |
| 8 | Size | Selection 1. Small 2. Medium 3. Large 4. None | None | size | string | none | Button size specification Added in v3.3.0 |
| 9 | Font Size | Number | 14 | fontSize | number | 14 | Button font size specification Added in v3.3.0 |
| 10 | Color | String Color Picker | color | string | Button color | ||
| 11 | Label Color | String Color Picker | labelColor | string | Button Label color Added in v3.4.0 | ||
| 12 | Disabled | Boolean | OFF | disabled | boolean | false | Component disabled/enabled state |
| 13 | Visibility | Boolean | ON | visibility | boolean | true | Component visibility state |
| 14 | Start Icon | Selection | None | startIcon | string | Icon displayed before the button | |
| 15 | End Icon | Selection | None | endIcon | string | Icon displayed after the button | |
| 16 | Alert Dialog | Selection 1. ON 2. OFF | OFF | Alert dialog visibility state | |||
| 17 | Alert Value | Table[Detail 1] | [Detail 1] | alertValues | [Detail 1] | Alert dialog content | |
| 18 | Tooltip | String | tooltip | string | Tooltip text | ||
| 19 | Click Event | Selection 1. None 2. NEXT UI 3. URL 4. WINDOW 5. UI SCRIPT 6. Action 7. Upload 8. DIALOG | Action | Click event setting UI SCRIPT became available for selection in v4.0.0. | |||
| 20 | NEXT UI | Selection 1. None 2. [UI Label] | nextUi | string | Destination UI | ||
| 21 | URL | String | url | string | Destination URL | ||
| 22 | DIALOG UI | Selection 1.None 2.[Dialog UI Label] | dialogUi | string | Destination Dialog UI Added in v3.3.0 | ||
| 23 | Tab Focus | Selection 1.[UI ID] | tabFocus | string | Next 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".
| Item | Value |
|---|---|
| Title | Are you sure? |
| Contents | Once 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. |
| Cancel | Cancel |
| Submit | Submit |
[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
- Select
"WINDOW"in"Click Event" - Set the URL for the transition to the external service site in the URL field displayed.
- 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
- 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.
- Click on the settings component to open the external service site with the specified URL in a new tab.
- Complete the external service site processing.
- Navigate to the callback URL.
- Close the external service site with the process from the callback page.
- 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.
- Select
"DIALOG"for[Click Event]. - Set the target dialog UI in the displayed DIALOG UI field.
- Define the dialog action
"Open".
- You can pass parameters such as
$param.{query parameter}when transitioning to the dialog UI.
- 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.
- Clicking the configured component displays the dialog UI as a popup.
- Perform processing in the dialog UI.
- Execute
$fn.closeDialog()on the dialog UI side. - The action defined in dialog action
"Close"is executed.
Event
| Event name | Description |
|---|---|
| onclick | For 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. |