Get Space Element

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.

Function

Desktop

kintone.portal.getContentSpaceElement()

Mobile

kintone.mobile.portal.getContentSpaceElement()

Parameters

none

Returns

  • 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