LoginSignup
1
1

More than 3 years have passed since last update.

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

Posted at

背景 Background

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

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>
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1