Get Page Type
Retrieves the type of the current page.
Function
kintone.user.getPageType()
Returns
A Promise object.
When the Promise object is fulfilled, an array of objects containing the following elements can be retrieved:
| Property |
Type |
Value and Description |
| type |
string |
Kintone features
APP: AppPORTAL: PortalSPACE: SpacePEOPLE: PeopleMESSAGE: MessageSEARCH: SearchNOTIFICATION: NotificationAPP_MARKETPLACE: App StoreAPP_SETTINGS: App Settings
|
| page |
string |
Kintone features' informationAPPAPP_INDEX: Record List (desktop)APP_CREATE: Record Create (desktop)APP_DETAIL: Record Details (desktop)
APP_EDIT: Record Edit (desktop)APP_PRINT: Record Print (desktop)APP_REPORT: Graph (desktop)APP_INDEX_MOBILE: Record List (mobile)APP_CREATE MOBILE: Record Create (mobile)APP_DETAIL_MOBILE: Record Details (mobile)APP_EDIT_MOBILE: Record Edit (mobile)APP_REPORT_MOBILE: Graph (mobile)
PORTALPORTAL_TOP: Top (desktop)PORTAL_TOP_MOBILE: Top (mobile)
SPACESPACE_ PORTAL: Space portal (desktop)SPACE_THREAD: Thread (desktop)SPACE_PORTAL_MOBILE: Space portal (mobile)SPACE_THREAD_MOBILE: Thread (mobile)
PEOPLEPEOPLE_TOP: Top (desktop)PEOPLE_TOP_MOBILE: Top (mobile)
MESSAGEMESSAGE_TOP: Top (desktop)MESSAGE_TOP_MOBILE: Top (mobile)SEARCHSEARCH_TOP: Top (desktop)SEARCH_TOP_MOBILE: Top (mobile)
NOTIFICATIONNOTIFICATION_TOP: Top (desktop)
APP_MARKETPLACEAPP_MARKETPLACE_TOP: Top (desktop)APP_MARKETPLACE_CATEGORY: Apps by category (desktop)APP_MARKETPLACE_SEARCH: Search results (desktop)APP_MARKETPLACE_DETAIL: App details (desktop)APP_SETTINGSAPP_SETTINGS_PLUGIN_SETTINGS: Plug-in settings (desktop)
|
Available Pages
notes
To check if the page is a mobile page or not, use the following API:
Check Mobile Page