forked from goffee/core
Merge pull request 'develop' (#16) from develop into main
Reviewed-on: goffee/core#16
This commit is contained in:
commit
23753fc72f
2 changed files with 12 additions and 0 deletions
11
response.go
11
response.go
|
@ -27,6 +27,17 @@ type header struct {
|
||||||
val string
|
val string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO add doc
|
||||||
|
func (rs *Response) BufferPDF(name string, b bytes.Buffer) *Response {
|
||||||
|
|
||||||
|
if rs.isTerminated == false {
|
||||||
|
rs.HttpResponseWriter.Header().Add("Content-Type", "application/pdf")
|
||||||
|
rs.HttpResponseWriter.Header().Add("Content-Disposition", "attachment; filename="+name)
|
||||||
|
b.WriteTo(rs.HttpResponseWriter)
|
||||||
|
}
|
||||||
|
return rs
|
||||||
|
}
|
||||||
|
|
||||||
// TODO add doc
|
// TODO add doc
|
||||||
func (rs *Response) Any(body any) *Response {
|
func (rs *Response) Any(body any) *Response {
|
||||||
if rs.isTerminated == false {
|
if rs.isTerminated == false {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package components
|
package components
|
||||||
|
|
||||||
type ContentDropdown struct {
|
type ContentDropdown struct {
|
||||||
|
ID string
|
||||||
Label string
|
Label string
|
||||||
TypeClass string // type primary, secondary, success, danger, warning, info, light, dark, link, outline-primary
|
TypeClass string // type primary, secondary, success, danger, warning, info, light, dark, link, outline-primary
|
||||||
IsDisabled bool
|
IsDisabled bool
|
||||||
|
|
Loading…
Reference in a new issue