Get Portal

Get Space Element - kintone.portal.getContentSpaceElement()

Retrieves the empty space element of the header of the Portal.
The area is highlighted in red, in the below image.

Portal Contents

Function

Desktop

kintone.portal.getContentSpaceElement()

Mobile

kintone.mobile.portal.getContentSpaceElement()

Parameters

none

Response

  • The space element of the header of the portal.
  • Null is returned for pages where it cannot be used.

Sample

1
2
3
4
kintone.events.on('portal.show', function(event) {
  var el = kintone.portal.getContentSpaceElement();
  el.textContent = 'Hello Kintone!';
});

Available Pages (Desktop)

  • Kintone portal

Available Pages (Mobile)

  • Kintone portal

Notes

  • These functions return null when used on Kintone portals for Guest users (External link).