Documentation ¶
Index ¶
- Variables
- type Card
- func (c Card) AddButton(button types.Button) Card
- func (c Card) BindAction(action types.Action) Card
- func (c Card) BindActionToBody(action types.Action) Card
- func (c Card) BindActionToContent(action types.Action) Card
- func (c Card) BindActionToFooter(action types.Action) Card
- func (c Card) BindActionToTop(action types.Action) Card
- func (c Card) GetContent() template.HTML
- func (c Card) SetAction(action template.HTML) Card
- func (c Card) SetContent(content template.HTML) Card
- func (c Card) SetFooter(footer template.HTML) Card
- func (c Card) SetSubTitle(subTitle string) Card
- func (c Card) SetTitle(title string) Card
Constants ¶
This section is empty.
Variables ¶
View Source
var List = map[string]string{
"card": `{{define "card"}}
<div class="card" id="{{.ID}}">
<div class="card-body" id="{{.BodyID}}">
<div class="card-index">
<div class="card-top" id="{{.TopID}}" {{if eq .SubTitle ""}}style="height: 43px;"{{end}}>
<div class="card-meta">
<div class="card-title">
<span>{{.Title}}</span>
{{if ne .Action ""}}
<span class="card-title-action">
{{.Action}}
</span>
{{end}}
</div>
{{if ne .SubTitle ""}}
<div class="card-subtitle"><span>{{.SubTitle}}</span></div>
{{end}}
</div>
</div>
<div class="card-content" id="{{.ContentID}}">
{{.Content}}
</div>
<div class="card-footer" id="{{.FooterID}}">
{{.Footer}}
</div>
</div>
</div>
</div>
{{end}}`,
}
Functions ¶
This section is empty.
Types ¶
type Card ¶
type Card struct { *adminTemplate.BaseComponent Title string SubTitle string Content template.HTML Action template.HTML ID string BodyID string TopID string ContentID string }
func (Card) GetContent ¶
func (Card) SetSubTitle ¶
Click to show internal directories.
Click to hide internal directories.