Quantcast
Channel: CSSタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8695

標準リストビューに表示するレコードがない場合でも、テキストを表示する

$
0
0

背景 Background

https://help.salesforce.com/articleView?id=rss_record_list_view.htm&type=5

標準リストビューまたはコンパクトリストビューに表示するレコードがない場合、コンポーネントは非表示になります。

NOTE If there aren’t records to display for either a standard or compact list view, the component is hidden.

ところが、標準リストビューをExperience Cloudなどで使いたいとき、これでは都合が悪いことがある。

However, this can be inconvenient for general users when the component is used in Experience Cloud.

対処法 How to manage

ヘッダーマークアップに以下のcssコードを入れると、標準リストビューの内容が空のときだけメッセージが出せる。
In header markup add following css to display a message when the record list is empty.

<style>div.forceCommunityRecordListStandard:empty::after{content:"表示するデータがありません No records available";}</style>

Viewing all articles
Browse latest Browse all 8695

Latest Images

Trending Articles

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>