Create Bottom Sheet
Create Bottom Sheet - kintone.mobile.createBottomSheet()
Creates a bottom sheet on the mobile screen.
The content displayed inside the bottom sheet can be customized freely.
Function
Desktop
For desktop, use the following API:
Create Dialog
Mobile
kintone.mobile.createBottomSheet(config)
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| config | Object | Required | The bottom sheet configuration |
| config.title | String | Optional | The title. If ignored, it will not be displayed. |
| config.body | Element object | Optional | The bottom sheet body element. If ignored, it will not be displayed. |
| config.showOkButton | Boolean | Optional | The visibility of the OK button.
|
| config.okButtonText | String | Optional | The text to display on the OK button. If ignored, "OK" will be displayed according to the logged-in user's language. |
| config.showCancelButton | Boolean | Optional | The visibility of the Cancel button.
|
| config.cancelButtonText | String | Optional | The text to display on the Cancel button. If ignored, "Cancel" will be displayed according to the logged-in user's language. |
| config.showCloseButton | Boolean | Optional | The visibility of the Close button.
|
| config.beforeClose | Function | Optional | A function to run before closing the bottom sheet by any of the following operations: OK button/Cancel button/Close button The user's selected operation is passed as an argument to the function.
false or a value that becomes false after the Promise is resolved, the bottom sheet will not close. |
Returns
A Promise object.
The following values can be retrieved when the Promise object is fulfilled:
| Property | Type | Description |
|---|---|---|
| show | Function | An asynchronous function that displays the created bottom sheet. It has no arguments. The return value is a Promise object.When the bottom sheet is closed, the Promise object is resolved and the following values can be retrieved:
|
| close | Function | A function that closes the bottom sheet. It has no argument or return value. |
Available Pages (Mobile)
Sample Request
|
|
UI Image
The image below shows the bottom sheet on mobile.
This may change in future product updates.
Notes
The Element object specified in the config.body argument is used directly as the bottom sheet body element.
Perform sanitization processing as necessary.