A standard collection of re-usable objects. https://holanet.xyz/soft/tomo/
Go to file
2024-09-12 18:11:08 -04:00
assets
internal
layouts
.editorconfig
abstractcontainer.go Overhaul collection of containers 2024-09-12 14:07:54 -04:00
button.go
calendar.go Update object code to use new containers 2024-09-12 14:54:26 -04:00
checkbox.go
colorpicker.go Fix spelling mistake in HSVAColorPicker documentation 2024-09-12 14:59:57 -04:00
container.go Overhaul collection of containers 2024-09-12 14:07:54 -04:00
dialog.go Update object code to use new containers 2024-09-12 14:54:26 -04:00
dropdown.go
file.go
go.mod
go.sum
heading.go
icon.go
input.go
label.go
labelcheckbox.go
labelswatch.go
LICENSE
menu.go Document torn tag 2024-09-12 15:04:38 -04:00
menuitem.go
mimeicon.go
notebook.go Add PageWrapper sub-component to Notebook 2024-09-12 15:44:11 -04:00
numberinput.go
pegboard.go Pegboard defaults to FlowVertical layout 2024-09-12 18:11:08 -04:00
README.md
root.go NewRoot now correctly returns a Root struct 2024-09-12 17:24:37 -04:00
scrollbar.go
scrollcontainer.go
segment.go Remove TODO in segment.go 2024-09-12 14:55:44 -04:00
separator.go
slider.go
swatch.go Update object code to use new containers 2024-09-12 14:54:26 -04:00
textinput.go
textview.go TextView tests its own compliance to tomo.Object 2024-09-12 15:06:20 -04:00

objects

Some of the objects in this package

Go Reference

Objects contains a standard collection of re-usable objects. It should also be viewed as a reference for how to create custom objects in Tomo.

Styling

All objects in this module have roles of the form:

objects.TypeName

Where TypeName is the exact Go type name of the object in question. Objects may also have different tags to indicate variations, states, etc. If applicable, they are listed and described in the doc comment for the object's type. More complex objects may have sub-components that are not accessible from the API. These are listed alongside the tags.

Setting Attributes

It is generally not recommended to set attributes on these objects. However, if you must, they can be set by obtaining the object's underlying box through the GetBox method. Be aware that the exact type of box that is returned here is not part of the API, and may change unexpectedly even after v1.0. This caveat also applies to boxes/sub-components making up the internal composition of the objects.