Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var List = map[string]string{
"productlist": `{{define "productlist"}}
<ul class="products-list product-list-in-box">
{{range $key, $data := .Data}}
<li class="item">
<div class="product-img">
<img src="{{index $data "img"}}" alt="Product Image">
</div>
<div class="product-info">
<a href="javascript:void(0)" class="product-title">{{index $data "title"}}
{{if eq (index $data "has_tabel") "true"}}
<span class="label label-{{index $data "labeltype"}} pull-right">{{index $data "label"}}</span>
{{end}}
</a>
<span class="product-description">
{{index $data "description"}}
</span>
</div>
</li>
{{end}}
</ul>
{{end}}`,
}
Functions ¶
This section is empty.
Types ¶
type ProductList ¶
type ProductList struct { *adminTemplate.BaseComponent Data []map[string]string }
func New ¶
func New() ProductList
func (ProductList) GetContent ¶
func (p ProductList) GetContent() template.HTML
func (ProductList) SetData ¶
func (p ProductList) SetData(value []map[string]string) ProductList
Click to show internal directories.
Click to hide internal directories.