Set Record List Style
Set Record List Style - kintone.app.setRecordListStyle()
Sets the style of the record list view (table view) for the current App.
Function
Desktop
kintone.app.setRecordListStyle(config)
Mobile
kintone.mobile.app.setRecordListStyle(config)
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| config | Object / String | Yes | The style settings.
|
| config.header | Array / String | Optional | The header style settings.
|
| config.header[].columnType | String | Optional | The type of column to apply styles to. The following values can be specified:
FIELD will be set. |
| config.header[].column | String | Optional | The column to style.
|
| config.header[].content | Object / String | Optional | The header column style settings.
|
| config.header[].content.color | String | Optional | The text color of the header. Specify a 6-digit hexadecimal color code, such as #ffffff. |
| config.header[].content.fontWeight | String | Optional | The font weight of the text in the header. The following values can be specified:
|
| config.header[].content.textDecoration | String | Optional | The text decoration of the header, such as underline or strikethrough. The following values can be specified:
|
| config.header[].background | Object / String | Optional | The background style settings of the header.
|
| config.header[].background.backgroundColor | String | Optional | The background color of the header. Specify a 6-digit hexadecimal color code, such as #ffffff. |
| config.body | Array / String | Optional | The list body style settings.
|
| config.body[].recordId | String | Optional | The Record ID of the record to style. |
| config.body[].style | Array / String | Optional | The record style setting.
|
| config.body[].style[].columnType | String | Optional | The type of the column to style. The following values can be specified:
FIELD will be set. |
| config.body[].style[].column | String | Optional | The column to style.
|
| config.body[].style[].content | Object / String | Optional | The field content style settings.
|
| config.body[].style[].content.backgroundColor | String | Optional | The background color of the field content. Specify a 6-digit hexadecimal color code, such as #ffffff.Applies only during inline editing. |
| config.body[].style[].content.color | String | Optional | The text color of the field content. Specify a 6-digit hexadecimal color code, such as #ffffff. |
| config.body[].style[].content.fontWeight | String | Optional | The font weight of the text in the field content. The following values can be specified:
|
| config.body[].style[].content.textDecoration | String | Optional | The text decoration of the field content, such as underline or strikethrough. The following values can be specified:
|
| config.body[].style[].content.borderColor | String | Optional | The border color of the field content. Specify a 6-digit hexadecimal color code, such as #ffffff.Applies only during inline editing. |
| config.body[].style[].background | Object / String | Optional | The background style settings.
|
| config.body[].style[].background.backgroundColor | String | Optional | The background color of the field. Specify a 6-digit hexadecimal color code, such as #ffffff. |
Each style can be removed individually by setting each property to DEFAULT.
Returns
A Promise object.
When the Promise object is fulfilled, no value is returned.
Sample Request
|
|
Available Pages
Desktop
- Record List page
Mobile
- Record List page
Notes
Minor display issues may occur depending on the settings combination. Details regarding the specific scope of decoration for each property may change in future product releases.
Limitations
Desktop
The following fields are not supported:
- Related records
- Field group
- Border
- Label
- Blank space
- Fields in a table
The following fields do not support the content settings:
- Rich text
- Table
The following fields do not support the content.borderColor and content.backgroundColor settings:
- Radio button
- Check box
Mobile
The following fields are not supported:
- Related records
- Field group
- Border
- Label
- Blank space
- Table
The following fields do not support the content settings:
- Rich text
The following settings are not supported:
- Setting styles for the column for the record edit button / delete button
- Setting
content.borderColorandcontent.backgroundColor