Documentation ¶
Index ¶
- func Aggregation(c *fiber.Ctx, datagrid Datagrid) error
- func ConvertDate(input string) string
- func DeleteData(c *fiber.Ctx, datagrid Datagrid, id string) error
- func Exec(c *fiber.Ctx, schemaId string, action string, id string, ...) error
- func ExecTrigger(action string, data interface{}, datagrid Datagrid, query *gorm.DB, ...) (interface{}, *gorm.DB, bool, bool)
- func ExportExcel(c *fiber.Ctx, datagrid Datagrid) error
- func FetchData(c *fiber.Ctx, datagrid Datagrid) error
- func Filter(c *fiber.Ctx, datagrid Datagrid, query *gorm.DB) (*gorm.DB, string)
- func ImportExcel(c *fiber.Ctx, datagrid Datagrid) error
- func Print(c *fiber.Ctx, datagrid Datagrid) error
- func Search(c *fiber.Ctx, GridModel interface{}, query *gorm.DB) *gorm.DB
- func StripTags(html string) string
- func UpdateRow(c *fiber.Ctx, datagrid Datagrid) error
- type Column
- type CustomHeader
- type Datagrid
- type ImportExcelRequest
- type RowUpdateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aggregation ¶
func ConvertDate ¶
func DeleteData ¶
func ExecTrigger ¶
func ExportExcel ¶
func ImportExcel ¶
Types ¶
type CustomHeader ¶
type CustomHeader struct { Render bool `json:"render"` Preview bool `json:"preview"` Structure []struct { ID string `json:"id"` Type string `json:"type"` Children []struct { ID string `json:"id"` Type string `json:"type"` Colspan string `json:"colspan"` Rowspan string `json:"rowspan"` Label string `json:"label"` Rotate int `json:"rotate"` Width string `json:"width"` Height string `json:"height"` Model interface{} `json:"model,omitempty"` } `json:"children"` } `json:"structure"` }
type Datagrid ¶
type Datagrid struct { Name string Identity string DataTable string MainTable string DataModel interface{} Data interface{} MainModel interface{} Columns []Column ColumnList []string Filters map[string]string Relations []models.GridRelation Condition string Aggergation string Triggers map[string]interface{} BeforeFetch func(interface{}, Datagrid, *gorm.DB, *fiber.Ctx) (interface{}, *gorm.DB, bool, bool) AfterFetch func(interface{}, Datagrid, *gorm.DB, *fiber.Ctx) (interface{}, *gorm.DB, bool, bool) BeforeDelete func(interface{}, Datagrid, *gorm.DB, *fiber.Ctx) (interface{}, *gorm.DB, bool, bool) AfterDelete func(interface{}, Datagrid, *gorm.DB, *fiber.Ctx) (interface{}, *gorm.DB, bool, bool) BeforePrint func(interface{}, Datagrid, *gorm.DB, *fiber.Ctx) (interface{}, *gorm.DB, bool, bool) TriggerNameSpace string IsExcelUpload bool ExcelUploadCustomNamespace string ExcelUploadCustomTrigger func(Datagrid, *fiber.Ctx) error FillVirtualColumns func(interface{}) interface{} }
type ImportExcelRequest ¶
type RowUpdateData ¶
type RowUpdateData struct { Ids []interface{} `json:"ids"` Value interface{} `json:"value"` Model string `json:"model"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.