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 L | 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 | Lock | Boolean | OFF | lock | boolean | false | When 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. |
| 8 | Style | Selection 1. Filled 2. Outlined 3. Text | Filled | variant | string | contained | Button style |
| 9 | Size | Selection 1. Small 2. Medium 3. Large 4. None | None | size | string | none | Button size specification Added in v3.3.0 |
| 10 | Font Size | Number | 14 | fontSize | number | 14 | Button font size specification Added in v3.3.0 |
| 11 | Color | String Color Picker | color | string | Button color | ||
| 12 | Label Color | String Color Picker | labelColor | string | Button Label color Added in v3.4.0 | ||
| 13 | Disabled | Boolean | OFF | disabled | boolean | false | Component disabled/enabled state |
| 14 | Visibility | Boolean | ON | visibility | boolean | true | Component visibility state |
| 15 | Start Icon | Selection | None | startIcon | string | Icon displayed before the button | |
| 16 | End Icon | Selection | None | endIcon | string | Icon displayed after the button | |
| 17 | Alert Dialog | Selection 1. ON 2. OFF | OFF | Alert dialog visibility state | |||
| 18 | Alert Value L | Table[Detail 1] | [Detail 1] | alertValues | [Detail 1] | Alert dialog content | |
| 19 | Tooltip | String | tooltip | string | Tooltip text | ||
| 20 | Click Event | Selection 1. None 2. NEXT UI 3. URL 4. WINDOW 5. UI SCRIPT 6. Action 7. Detached Action 8. Upload 9. Camera 10. DIALOG | Action | Click event setting UI SCRIPT became available for selection in v4.0.0.Detached Action became selectable in v4.1.0.Camera became selectable in v4.2.0. | |||
| 21 | NEXT UI | Selection 1. None 2. [UI Label] | nextUi | string | Destination UI | ||
| 22 | URL | String | url | string | Destination URL | ||
| 23 | DIALOG UI | Selection 1.None 2.[Dialog UI Label] | dialogUi | string | Destination Dialog UI Added in v3.3.0 | ||
| 24 | Detached Action | Selection 1. [Detached Action ID] | detachedAction | string | Set a detached action Added in v4.1.0. | ||
| 25 | Preferred Camera | Selection 1. None 2. Rear 3. Front | None | preferredCamera | string | none | Can be configured when Camera is selected for Click Event. Sets which camera (rear or front) is preferentially launched. Since it depends on OS and browser standard behavior, the launch camera cannot be fully enforced. Added in v4.2.0. |
| 26 | Enable Resize | Boolean | OFF | enableResize | boolean | false | Can be configured when Camera is selected for Click Event. Setting to enable file size resizing. Added in v4.2.0. |
| 27 | Resize Mode | Selection 1. Fixed 2. User Selectable | User Selectable | resizeMode | string | userSelectable | Can be configured when Camera is selected for Click Event. In Fixed mode, the size selection dialog is not displayed and processing follows the fixed size. In User Selectable mode, the size selection dialog is displayed and the user selects each time. Added in v4.2.0. |
| 28 | Fixed Size | Selection 1. Small 2. Medium 3. Large 4. Actual Size | Medium | fixedSize | string | medium | Can be configured when Camera is selected for Click Event. Size setting when Fixed mode is selected. Added in v4.2.0. |
| 29 | Tab Focus | Selection 1.[Component 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.For the click event "Detached Action": Executes the detached action when clicked.For the click event "Camera": The camera is launched when clicked. The action is executed after the photo is taken. |