Skip to content

Commit

Permalink
Add ID setter to ImageWithFile widget.
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenDang committed Jun 2, 2022
1 parent c1ea118 commit e5d8974
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ImageWidgets.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ func ImageWithFile(imgPath string) *ImageWithFileWidget {
}
}

// ID sets the interval id of ImageWithFile widgets.
func (i *ImageWithFileWidget) ID(id string) *ImageWithFileWidget {
i.id = id
return i
}

// Size sets image's size.
func (i *ImageWithFileWidget) Size(width, height float32) *ImageWithFileWidget {
i.img.Size(width, height)
Expand Down

0 comments on commit e5d8974

Please sign in to comment.