コンポーネント詳細
EmptyState
No-data and loading empty-state presentation
サンプル
参照情報
- テンプレート
templates/components/empty_state.html- ゴールデン
testdata/golden/empty_state.golden.html
Go(Marionette)サンプル
この実装例は Go の Marionette を使っています。ソース: docs/site-astro/public/examples/go/empty-state.go
package goexamples
import (
mb "github.com/YoshihideShirai/marionette/backend"
mf "github.com/YoshihideShirai/marionette/frontend"
)
func RegisterEmptyStateExample(app *mb.App) {
app.Page("/empty-state", func(ctx *mb.Context) mf.Node {
return mf.EmptyState(mf.EmptyStateProps{
Title: "No users",
Description: "Create a user to populate this table.",
Icon: "0",
})
})
}