Copyright 2016 Wenhui Shen <>

    Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

    Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.



    This section is empty.


    View Source
    var (
    	DefaultModal = Modal{
    		ExtButtons: []Button{},
    	ReadConfigFile = func(file string) ([]byte, error) {
    		return ioutil.ReadFile(file)


    func Clear

    func Clear() error

    func Remove

    func Remove(confPath string) error

    func Render

    func Render(ctx echo.Context, param interface{}) template.HTML


    type Button

    type Button struct {
    	Attributes []HTMLAttr //按钮属性
    	Text       string     //按钮文本

    type HTMLAttr

    type HTMLAttr struct {
    	Attr  string      //属性名
    	Value interface{} //属性值
    type Modal struct {
    	Id          string   //元素id
    	Custom      bool     //是否自定义整个内容区域
    	HeadTitle   string   //头部标题
    	Title       string   //内容标题
    	Content     string   //内容
    	HelpText    string   //帮助提示
    	Animate     string   //动画样式class名
    	Type        string   //类型:warning/primary/success/danger
    	ContentType string   //内容类型:form/blackform/""
    	ExtButtons  []Button //附加按钮

    Source Files