ozdenui

package module
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 33 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

OzdenUI for Go

OzdenUI for Go

A small, modern window of its own in Go, made of basic.js objects and the components of the OzdenUI kit. Only Go: no JavaScript, no HTML, no CSS, no build step of a front end. Your Go code makes the objects, and a window shows them. The built program is one file.

The site: https://bug7a.github.io/ozdenui-go/ and the handbook, ten short chapters with programs that run: English (Markdown), Türkçe (Markdown).

The window above is examples/gallery, the main components of the kit in one window.

Why OzdenUI

Made for a small tool, a command line program that needs a window, and a tool given to a team as one file.

  • Only Go. The window is made of Go values: no HTML, CSS or JavaScript to write, no Node or npm, no build step of a front end.
  • One file to give away. go build makes one program (about 15 MB) with the page, basic.js and the components inside it: nothing else to install. Its window is the web view of the system: WKWebView, WebView2, WebKitGTK.
  • A modern look from the first line. 83 components of the OzdenUI kit, each with its own Go type: buttons, fields, lists, a table of 100000 rows, charts, a date picker, a chat, a JSON editor, a canvas. A dark window is one word: ui.Window{Theme: "dark"}.
  • Typed params. Every component has its Props struct: the editor offers the names, the compiler catches a misspelled one.
  • Code that reads like the window. A group takes a function that makes its objects, so the shape of the code is the shape of the window. Your program runs on one goroutine, one task at a time: no locks.
  • Easy to learn, with an AI assistant too. A handbook of ten short chapters in English and Turkish, every program in it built by the tests. One command teaches your assistant the module, and OZDENUI_LOOK=app.png go run . lets it see the window it made.
  • Tested on three systems. At every push the tests run and every example is drawn on Windows, macOS and Linux. Open source, Apache 2.0.
package main

import (
	"strconv"

	ui "github.com/bug7a/ozdenui-go"
)

var (
	count = 0
	label *ui.Object
)

func main() {
	ui.Run(start, ui.Window{Title: "Counter", Width: 360, Height: 260})
}

func start(page *ui.Object) {
	page.Set("color", "#F4F5F7")
	ui.VGroup(ui.Props{Gap: 16}, func() {
		label = ui.Label(ui.Props{Text: "0", FontSize: 48})
		ui.HGroup(ui.Props{Hug: true, Gap: 10}, func() {
			ui.SmartButton(ui.SmartButtonProps{LabelText: "Minus", OnClick: func() { add(-1) }})
			ui.SmartButton(ui.SmartButtonProps{LabelText: "Plus", Tone: "cyan", OnClick: func() { add(1) }})
		})
	})
}

func add(step int) {
	count += step
	label.SetText(strconv.Itoa(count))
}
go get github.com/bug7a/ozdenui-go

v0.2, experimental: tested on macOS, Windows 11 and Linux (Ubuntu 24.04). Go 1.22 or newer.

  • macOS: the window is the web view of the system (WKWebView), inside the program. It needs cgo: the command line tools of Xcode (xcode-select --install). The first build takes about ten seconds and may print warnings of the web view's C code; the next ones are fast.
  • Windows: the window is the web view of the system (WebView2, in every Windows 11 and in most Windows 10), inside the program. No C compiler is needed. A computer without WebView2 gets the app window of Edge or Chrome.
  • Linux: the window is the web view of the system (WebKitGTK), inside the program. No C compiler is needed: its library is loaded when the program runs. The desktop of Ubuntu always has it (its help app needs it), other GNOME desktops usually do; if not, on Debian or Ubuntu: sudo apt install libwebkit2gtk-4.1-0. Without it the window is an app window of Chrome, Chromium or Edge.

With an AI assistant (Claude Code, Codex, Cursor, Copilot...): OzdenUI is new, so an assistant does not know it yet. One command writes its rules (how a program is made, the layout, the events, the components, the mistakes to avoid) into the folder of your project, where the assistant reads them by itself:

go run github.com/bug7a/ozdenui-go/cmd/ozdenui@latest agents              # into AGENTS.md
go run github.com/bug7a/ozdenui-go/cmd/ozdenui@latest agents CLAUDE.md    # into another file

And the assistant can look at the window it made, without a window:

OZDENUI_LOOK=app.png go run .       # runs the program as it is, saves a picture of its window, ends

How it works

  • The window shows a page of basic.js that is inside the program (go:embed), served only to this computer.
  • An object in Go is a proxy: it keeps an id and the values it was given, and sends commands to the page, where the real basic.js object lives. The events of the page come back as calls of your functions.
  • Everything of your program runs on one goroutine, one task at a time (start, an event, a timer): no locks. The commands of a task go to the page together, when the task ends.
  • Reading a value the program gave, or the state a component tells (the text of a field, a checked box), asks nothing of the page.

Objects

Five plain objects and two groups, all with ui.Props:

ui.Box(ui.Props{Left: 20, Top: 20, Width: 200, Height: 120, Color: "white", Round: 8}, func() {
	ui.Label(ui.Props{Left: 12, Top: 12, Text: "In the box"})       // a place of its own in a Box
})
ui.VGroup(ui.Props{Gap: 12, Padding: 20, Align: "left top"}, func() { // one under the other
	ui.Label(ui.Props{Text: "A name", FontSize: 15})
	ui.Input(ui.Props{Width: 220, Placeholder: "Type here", OnEnter: save})
	ui.Button(ui.Props{Text: "Save", OnClick: save})
	ui.Icon(ui.Props{Width: 48, Height: 48, Picture: "photo.png"})
})
  • A field that is not written keeps the default of basic.js; a zero that is written is a value (Gap: 0).
  • A size is a number (px) or a text ("100%", "auto"). Text is shown as it is written; Html takes HTML.
  • A group is 100% x 100%; Hug: true wraps its objects, Fill: true takes the room the others leave.
  • Later: obj.Set("text", "Hi", "fontSize", 20) (the names of basic.js), obj.SetText(), obj.Text(), obj.Hide(), obj.Show(), obj.Remove(), box.Add(func() { ... }) to make more objects in a box.
  • Events: OnClick, OnInput, OnEnter, OnKeyDown..., or obj.On("dblclick", fn); a handler is func(), func(obj *ui.Object) or func(obj *ui.Object, event ui.Event).

Components

Every component of the kit is a function with its own ...Props type; its fields are the params of the kit, each with its default in its comment (go doc github.com/bug7a/ozdenui-go SelectBoxProps), so an editor offers them and a wrong name does not compile.

name := ui.TextField(ui.TextFieldProps{TitleText: "Name", Width: 260, OnEnter: save})
color := ui.SelectBox(ui.SelectBoxProps{Options: []string{"Red", "Green", "Blue"}, Value: "Green"})
agree := ui.CheckBox(ui.CheckBoxProps{LabelText: "I agree", OnChange: func(box *ui.Object) {
	fmt.Println(box.Checked())
}})
ui.SmartButton(ui.SmartButtonProps{LabelText: "Save", Tone: "cyan", OnClick: func() {
	fmt.Println(name.Text(), color.Value(), agree.Checked())  // read without a question to the page
}})
For Functions
Buttons SmartButton, ActionButton, HoldToConfirmButton
Fields TextField, EmailField, PasswordField, NumberField, CurrencyField, PhoneField, UrlField, TextAreaField, SearchInput, TagInput
Choices CheckBox, Toggle, RadioButton, SelectBox, TinySelect, Slider, SliderField, RangeSlider, Stepper, DatePicker, TimePicker, ColorPicker
Lists and tables ItemList, SortableList, TreeView, SmartTable, DataTable, TinyTable
Areas that hold objects ScrollArea, GridGroup, Tabs, Accordion, Splitter, SidePanel
Bars MenuBar, ToolBar, StatusBar, ContextMenu, AppBar, BottomBar, Breadcrumbs
Messages Tooltip, LoadingScreen, ProgressBar, LineProgressBar, StepBar, Notice, Badge
Views GraphBox, MiniGraphBox, SparkLineBox, Gauge, LogView, ImageView, MarkdownView, JsonView, JsonEditor, CodeEditor, RichTextEditor, Canvas, ChatView, WebView, FilePicker, TimeLine
  • A callback gets the object and the values the kit names in the comment of the field, each in the type your function asks for: OnSelect: func(table *ui.Object, row Person).
  • A row of a table and an item of a list may be a struct of your program (its json tags are its keys) or a ui.P{"key": "tr", "text": "Türkiye"} (ui.P is map[string]any).
  • The areas: ui.ScrollArea(props, func() { ... }), tabs.Panel(key, func() { ... }), accordion.Section(key, func() { ... }), splitter.First(...) / splitter.Second(...), panel.Body(...).
  • Later: obj.Set("unitText", "kg") changes a param (with the method of the kit when it has one; the callback of the component is not called by a change of the code), obj.Call("addItem", item) calls a method of the kit, obj.Ask("getSelectedKeys") returns its result.
  • A component is loaded into the page when the program first names it, with what it needs: a program pays only for what it uses.
  • Any component by its name, with its params by their names in the kit: ui.Component("Gauge", ui.P{"value": 72}).

Dialogs and messages

if ui.Confirm("Delete the list?", ui.DialogOptions{Danger: true}) { ... }   // waits; the window keeps working
name, ok := ui.Prompt("The name of the list:")
ui.Alert("Saved.")
switch ui.Ask("Save the changes?", "Save", "Don't save", "Cancel") { ... }
ui.ToastSuccess("Saved.")                                                    // never waits
path := ui.OpenFile(ui.FileOptions{Types: []string{"csv"}})                  // the file dialog of the system

Time and goroutines

stop := ui.Every(1000, tick)        // again and again; stop() ends it
ui.After(3000, ui.Close)            // once

go func() {                         // a slow job: the window does not wait for it
	text := download()
	ui.Do(func() { label.SetText(text) })   // the objects are changed on the goroutine of the window
}()

An object changed from another goroutine panics with this fix in its message; nothing breaks without a word.

Light, dark, minimal

ui.Run(start, ui.Window{Theme: "dark"})                                  // "light", "dark", "auto"
ui.Run(start, ui.Window{Style: "minimal", Accent: "#2A78D6"})            // small, made of lines, one color

ui.Window{Language: "tr"} is the language of the texts of the window (capital letters, word breaks).

In a dark window every component takes its dark look by itself, and the plain objects and the page are dark too. ui.SetTheme("dark") changes it while the program runs (start() runs again). One component: StyleName: "..." (the doc of its function names its packages) or Style: ui.P{"box": ui.P{"round": 12}}.

Examples

go run ./examples/gallery (from a clone of the repository):

counter, greeting, basics the first steps
notes, todo, form, settings, calculator small programs
dialogs, charts, clock, game dialogs, charts, timers, a Box with places and keys
csv-viewer, json-viewer, image-viewer, editor, markdown-editor files of the computer
job-log a goroutine that tells its progress
chat, gallery, minimal-theme the bigger ones

Limits of v0.2

  • macOS, Windows and Linux are tested (Linux: Ubuntu 24.04, with WebKitGTK and with Chromium). A Linux computer without WebKitGTK opens the app window of Chrome, Chromium or Edge (with none of them: a tab of the default browser). The older way to WebKitGTK, with cgo (-tags ozdenui_webview, webkit2gtk-4.0), is still there for Ubuntu 22.04.
  • Windows: the window is sharp on the scale of the main screen; on a second screen with another scale it is stretched by the system.
  • One window for a program.
  • A callback of the kit that must answer at once (a validator, createItemView) can not be a Go function: the answer of the program comes after the page has drawn.
  • A file dropped on a FilePicker gives its name, not its path on the computer; a click on it opens the file dialog of the system, and those files have their paths (picker.Paths()).
  • No hot reload: go run . again.

Development

go test ./...                    # the checks; TestWindow plays a real page in a hidden Chrome
checks/look-all.sh               # a picture of every example, light and dark (pictures/)
checks/handbook.sh               # every whole program of the handbook, built and drawn (pictures/handbook/)
./update-web.sh --commit HEAD    # the kit copy (web/) from the js-components repository, then kit_gen.go
go run ./internal/gen            # kit_gen.go again, after a change of internal/gen/spec.json

kit_gen.go (the Props types and the table of the components) is written by internal/gen from the files of the kit in web/comp and from internal/gen/spec.json; never edit it by hand, and never edit the copy in web/basic and web/comp.

The family: OzdenUI for Python is the same kit for Python; basic.js and the components are the JavaScript they stand on.

License

Apache 2.0. Copyright 2026 Buğra Özden. basic.js and the components of the kit are in web/ (Apache 2.0, the same author); the window of macOS is webview (MIT), the window of Windows is go-webview2 (MIT).

Developed with the help of Claude Code (Anthropic).

Documentation

Overview

Package ozdenui makes desktop windows in plain Go: the objects of basic.js and the components of the OzdenUI kit (buttons, fields, lists, tables, charts, dialogs...), with no HTML, CSS or JavaScript to write.

package main

import ui "github.com/bug7a/ozdenui-go"

func main() {
    ui.Run(start, ui.Window{Title: "Hello", Width: 400, Height: 300})
}

func start(page *ui.Object) {
    ui.VGroup(ui.Props{Gap: 16}, func() {
        label := ui.Label(ui.Props{Text: "Hello", FontSize: 32})
        ui.SmartButton(ui.SmartButtonProps{LabelText: "Press", Tone: "cyan", OnClick: func() {
            label.SetText("Pressed")
        }})
    })
}

How it works

The window shows a page of basic.js that is inside the program (the built program is one file). An object in Go is a proxy: it keeps an id and the values it was given, and sends commands to the page, where the real object lives; the events of the page come back as calls of the functions of the program. Everything of the program runs on one goroutine, one task at a time (start, an event, a timer), and the commands of a task go to the page together.

The parts

  • Run opens the window and calls start(page); Window says how it opens (its size, Theme, Style).
  • Box, Label, Button, Input, Icon and the groups VGroup, HGroup take Props.
  • Every component of the kit is a function with its own Props type: CheckBox(CheckBoxProps{...}), SmartTable(SmartTableProps{...})... Their fields are the params of the kit, each with its default in its comment. Component() makes one by its name.
  • An Object is changed with Set (by the names of the kit), read with Get, Text, Value, Checked, and called with Call and Ask. Add puts objects into a box later.
  • Alert, Confirm, Prompt and Ask are dialogs that return their answer; ToastSuccess and its kin never wait; OpenFile, SaveFile and ChooseFolder are the file dialogs of the system.
  • After, Every and Do are the timers and the way back from a goroutine of the program.

A picture of the window

OZDENUI_LOOK=app.png go run . runs the program without a window and saves a picture of it (it needs Chrome, Edge or Chromium): the way to see a window from a terminal, for a check or for an AI assistant.

The rules for an AI assistant that writes a program with this module: go run github.com/bug7a/ozdenui-go/cmd/ozdenui@latest agents

Index

Constants

View Source
const Empty = "\x00empty"

Empty is an empty text that is given on purpose. WHY: a text field of a Props type that is "" was not given, so the component keeps its own default; LabelText: ozdenui.Empty is a button without a text.

View Source
const KitVersion = "26.11.10"

KitVersion is the version of basic.js in this module.

View Source
const Version = "0.2.5"

Version is the version of the module.

Variables

This section is empty.

Functions

func After

func After(milliseconds int, task func()) (cancel func())

After runs task() once, after a time (milliseconds). It returns a function that cancels it.

func Alert

func Alert(message string, options ...DialogOptions)

Alert shows a message and waits until it is closed.

func Ask

func Ask(message string, buttons ...string) string

Ask shows a message with buttons of the program and returns the text of the pressed one ("": closed with Escape or a click outside). The first button is the main one.

switch ozdenui.Ask("Save the changes?", "Save", "Don't save", "Cancel") { ... }

func AskWithTitle

func AskWithTitle(title, message string, buttons ...string) string

AskWithTitle is Ask with a title over the message.

func ChooseFolder

func ChooseFolder(options ...FileOptions) string

ChooseFolder is the path of the folder the user chose ("": cancelled).

func Close

func Close()

Close closes the window (from any goroutine); Run() returns.

func Confirm

func Confirm(message string, options ...DialogOptions) bool

Confirm asks a yes / no question: if ozdenui.Confirm("Delete it?", ozdenui.DialogOptions{Danger: true}) { ... }

func Do

func Do(task func())

Do runs task() on the app goroutine, after the task that runs now. Any goroutine may call it: it is the way a goroutine of the program (a download, a long job) changes the objects.

go func() {
    text := download()                       // the window does not wait for it
    ozdenui.Do(func() { label.SetText(text) })
}()

func Evaluate

func Evaluate(script string) any

Evaluate runs JavaScript on the page and returns its value (after the waiting commands).

func Every

func Every(milliseconds int, task func()) (stop func())

Every runs task() again and again (the loop() of basic.js). It returns a function that stops it.

func Flush

func Flush()

Flush sends the waiting commands to the page now: a long task can show its progress.

func Format

func Format(pattern string) any

Format is how a component writes its numbers (the FormatValue of a GraphBox, the ValueFormat of a Stepper): a text around one {} place, the page fills it at once.

"{:,.2f} TL"   1,234.50 TL      "{:.0f} kg"   12 kg      "{:.1%}"   12.3%      "$ {:,}"   $ 1,234

WHY not a function of the program: the page draws at once; the answer of the program would come too late.

func IsDark

func IsDark() bool

IsDark is true in a dark window: color := map[bool]string{false: "#5A6270", true: "#9AA3B5"}[ozdenui.IsDark()]

func IsOn

func IsOn(value any) bool

IsOn reads a flag that came from the page (the result of Ask(), a value of a callback): the kit writes its flags as 1 / 0, which come as numbers. It is true for 1, true and a text that is not empty.

func Number

func Number(value any) float64

Number reads a number that came from the page as a float64 (0 for nil; a text of a number is read too).

func OpenFile

func OpenFile(options ...FileOptions) string

OpenFile is the path of the file the user chose ("": cancelled).

func OpenFiles

func OpenFiles(options ...FileOptions) []string

OpenFiles is as OpenFile, with more than one file.

func Picture

func Picture(source any) string

Picture is the address of a picture for the page: of a file of this computer ("photo.png"), of bytes (a PNG or a JPEG read from somewhere) or of an image.Image made by the program. An address of the web stays as it is. A param of a component that names a file (IconFile, ImageFile) and the Picture of an Icon take a path by themselves; Picture() is for the other places (the "icon" of an item of a list, a picture in a style).

func Prompt

func Prompt(message string, options ...DialogOptions) (text string, ok bool)

Prompt asks for a text. ok is false when the dialog was cancelled.

name, ok := ozdenui.Prompt("The name of the list:")

func RadioValue

func RadioValue(group string) any

RadioValue is the Value of the checked RadioButton of a group ("default" when no Group was given), or nil.

func Run

func Run(start func(page *Object), window ...Window)

Run opens the window, calls start(page) when its page is ready and returns when the window is closed. Call it once, at the end of main().

func SaveFile

func SaveFile(options ...FileOptions) string

SaveFile is the path to save to ("": cancelled). The file is not made: the program writes it.

func SetTheme

func SetTheme(theme string)

SetTheme draws the window again in another theme: "light", "dark" or "auto" (what the system asks). The page is made again and start() runs again, as when the window opened: its objects start again (a text typed in a field is gone), what the program keeps in its own variables stays. Any goroutine may call it; the change comes after the task that runs now.

func SetTitle

func SetTitle(title string)

SetTitle changes the title of the window.

func Text

func Text(value any) string

Text reads a value that came from the page as a text ("" for nil; a whole number without ".0").

func Theme

func Theme() string

Theme is the theme of the window: "light" or "dark".

func ToastError

func ToastError(message string, title ...string)

ToastError: see ToastSuccess.

func ToastInfo

func ToastInfo(message string, title ...string)

ToastInfo: see ToastSuccess.

func ToastSuccess

func ToastSuccess(message string, title ...string)

ToastSuccess shows a small green message for a while: ozdenui.ToastSuccess("Saved."). A title may follow.

func ToastWarning

func ToastWarning(message string, title ...string)

ToastWarning: see ToastSuccess.

Types

type AccordionProps

type AccordionProps struct {
	Key          any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left         any    // default: 0
	Top          any    // default: 0
	Width        any    // default: "100%"
	Height       any    // default: "auto". "auto": it grows with its open sections. A number or "100%": the sections scroll inside it.
	Sections     any    // default: []. [SECTION] (See A SECTION above)
	Multiple     any    // default: 1. 1: more than one section can be open. 0: a section that opens closes the others.
	ArrowSide    string // default: "right". "right", "left": where the arrow of a row is
	Enabled      any    // default: 1
	Animated     any    // default: 0. 1: the arrow turns, the objects of a section fade in. setAnimated()
	UseScrollBar any    // default: 1. basic/scroll-bar.js (when it is loaded), with a height that is not "auto". 0: the scrollbar of the browser.
	OnToggle     any    // default: a function. section.key, section.opened. (Not at create time, not with silent: 1)
	StyleName    string // default: "light". "light", "dark", "minimal", "minimalDark" or a name added to Accordion.styles
	Style        P      // default: {...}. Light style package (default)

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

AccordionProps are the params of a Accordion, by their names in the kit (comp/accordion.js). A param that is not given keeps the default written next to it.

type ActionButtonProps

type ActionButtonProps struct {
	Key            any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left           any    // default: 0
	Top            any    // default: 0
	Width          any    // default: "100%"
	Height         any    // default: "100%"
	Items          any    // default: []. [{ key, text }] or ["text"]
	IconFile       string // default: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xml.... a plus (a page can give its own picture)
	OpenIconFile   string // default: "". "": iconFile. The icon while the menu is open.
	IconSize       any    // default: 30
	IconRotate     any    // default: 0. deg
	OpenIconRotate any    // default: 45. deg: the + turns into ×
	RightSpace     any    // default: 40. The button from the right side of the container
	BottomSpace    any    // default: 40. The button from the bottom of the container
	MenuWidth      any    // default: 280
	MenuGap        any    // default: 20. Between the menu and the button
	Animated       any    // default: 0. 1: small hover / press / open motions (context/basic-js-animated-rules.md). (box.setAnimated(0/1))
	OnAction       any    // default: a function. An action was chosen (no items: key is "", one item: its key)
	OnMenuToggle   any    // default: a function. The menu opened / closed: self.menuOpened
	StyleName      string // default: "classic". "classic", "ozden" or a name added to ActionButton.styles
	Style          P      // default: {...}. Classic style package (default)

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

ActionButtonProps are the params of a ActionButton, by their names in the kit (comp/action-button.js). A param that is not given keeps the default written next to it.

type ActionTabBarProps

type ActionTabBarProps struct {
	Key             any    // default: "0". Your name for this object: read it in a callback (self.key)
	Width           any    // default: 600
	Height          any    // default: 150
	Items           any    // default: []. [{ key, text, iconFile }] (Only at create time)
	Value           any    // default: null. The key of the selected tab. null: the first tab
	AriaLabel       string // default: "Tabs". The name of the tab list for a screen reader
	ActionAriaLabel string // default: "Add". The name of the "+" button for a screen reader
	OnChange        any    // default: a function. self.value, self.previousValue, self.getIndex()
	OnAction        any    // default: a function. The "+" button
	Style           P      // default: {...}

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

ActionTabBarProps are the params of a ActionTabBar, by their names in the kit (comp/action-tab-bar.js). A param that is not given keeps the default written next to it.

type AppBarProps

type AppBarProps struct {
	Key           any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left          any    // default: 0. The bar stands at the top of its container (a page)
	Top           any    // default: 0
	Width         any    // default: "100%"
	Height        any    // default: 105
	Color         string // default: "white". The background of the bar
	TitleText     string // default: ""
	TitleAlign    string // default: "center". "center" or "left" (set later with setTitleAlign)
	Line          any    // default: 0. 1: a soft line at the bottom (setLine)
	ShowBack      any    // default: 0. 1: the back button at the left (setBackVisible)
	ShowMenu      any    // default: 1. 1: the menu button at the right (setMenuVisible)
	BackIconFile  string // default: "". "": a back arrow drawn in SVG (Ex: "assets/icons/back.svg")
	MenuIconFile  string // default: "". "": three dots drawn in SVG
	IconColor     any    // default: Black(0.8). The color of the drawn icons (a file keeps its own colors)
	BackAriaLabel string // default: "Back". What a screen reader says for the buttons
	MenuAriaLabel string // default: "Menu"
	OnBack        any    // default: a function
	OnMenu        any    // default: a function
	Style         P      // default: {...}

	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

AppBarProps are the params of a AppBar, by their names in the kit (comp/app-bar.js). A param that is not given keeps the default written next to it.

type BadgeProps

type BadgeProps struct {
	Key         any    // default: "0"
	Value       any    // default: 0
	MaxValue    any    // default: 99
	ShowPlus    any    // default: 1. 1: over maxValue -> "99+"
	ShowZero    any    // default: 0. 1: 0 is shown as "0" (0: hidden)
	DotForOne   any    // default: 1. 1: a dot for 1, 0: the number "1"
	DotSize     any    // default: 10
	BadgeStyle  P      // default: {...}. The dot and the number (Ex: a white ring: border: 3, borderColor: "white")
	DotStyle    P      // default: {}. Only the dot, over badgeStyle: top, right...
	NumberStyle P      // default: {}. Only the number, over badgeStyle: fontSize, bold, padding, round, top, right...
	StyleName   string // default: "ozden". "ozden", "light", "dark" or a name added to Badge.styles
	Style       P      // default: {}. WHY: the look is in the params above; the packages are packages of params (see Badge.styles).

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Width    any // 120, "100%", "auto"
	Height   any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

BadgeProps are the params of a Badge, by their names in the kit (comp/badge.js). A param that is not given keeps the default written next to it.

type BottomBarProps

type BottomBarProps struct {
	SelectedIndex  any    // default: 0
	Left           any    // default: 0
	Width          any    // default: "100%"
	Height         any    // default: 100
	Items          any    // default: []. [{ iconFile: "home.png", selectedIconFile: "homes.png", text: "Home", color: "#5ABB9F" }] (selectedIconFile, color: optional)
	OnItemClick    any    // default: a function
	HoverEffect    any    // default: true. For desktop usage
	LabelMode      string // default: "inline". "inline": the name next to the selected icon, "float": over it for a moment, "none": no names
	AllowHtml      any    // default: 0. 1: the names of the items are HTML (only for your own texts)
	FloatLabelTime any    // default: 600. ms: from the moment the name shows over the selected item to its fade out ("float")
	Badge          P      // default: {...}. The params of the Badge of every item (comp/badge.js)
	Style          P      // default: {...}

	Top       any
	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

BottomBarProps are the params of a BottomBar, by their names in the kit (comp/bottom-bar.js). A param that is not given keeps the default written next to it.

type BreadcrumbsProps struct {
	Key                 any    // default: "0"
	Width               any    // default: "auto". "auto": Wraps the items. A number or "100%": Fixed width.
	Height              any    // default: "auto"
	Items               any    // default: []. [{ text, key, url, iconFile, data }] or ["Home", "Products"]
	Separator           string // default: "chevron". "chevron" or a text. (Ex: "/", "›", "•")
	MaxItems            any    // default: 0. 0: No collapse. Ex: 4 -> Home / … / Laptops / Lenovo
	ItemsBeforeCollapse any    // default: 1
	ItemsAfterCollapse  any    // default: 2
	MaxItemWidth        any    // default: 180. Long texts are cut with "...". 0: No limit.
	Wrap                any    // default: 0. 1: Items move to the next line when there is no space.
	TrimOnClick         any    // default: 0. 1: Clicking an item removes the items after it. (In-app navigation)
	CurrentClickable    any    // default: 0. 1: The last item can be clicked too.
	Enabled             any    // default: 1
	AriaLabel           string // default: "Breadcrumb"
	OnClick             any    // default: a function. return false: Do not go to item.url
	OnChange            any    // default: a function. When items change with code or trimOnClick.
	Style               P      // default: {...}

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

BreadcrumbsProps are the params of a Breadcrumbs, by their names in the kit (comp/breadcrumbs.js). A param that is not given keeps the default written next to it.

type CanvasProps

type CanvasProps struct {
	Key         any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left        any    // default: 0
	Top         any    // default: 0
	Width       any    // default: 400
	Height      any    // default: 300
	Shapes      any    // default: []. [SHAPE]: the first shapes. Later: addShape(), setShapes()
	Drawing     any    // default: 0. 1: the mouse draws free lines with the pen
	PenColor    string // default: "". "": the pen color of the style
	PenWidth    any    // default: 3
	AriaLabel   string // default: "A drawing"
	OnClick     any    // default: a function. shape: the shape at that place (the top one), or null
	OnShapeMove any    // default: a function. A draggable shape was put down at its new place.
	OnDrawEnd   any    // default: a function. A free line is finished: it is in the list (shape.key).
	StyleName   string // default: "light". "light", "dark" or a name added to Canvas.styles
	Style       P      // default: {...}. Light style package (default)

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

CanvasProps are the params of a Canvas, by their names in the kit (comp/canvas.js). A param that is not given keeps the default written next to it.

type ChatViewProps

type ChatViewProps struct {
	Key            any    // default: "0". Your name for this object: read it in a callback (self.key)
	Width          any    // default: 480
	Height         any    // default: 560. A number or "100%". (Not "auto": the messages scroll above the field.)
	Messages       any    // default: []. [{ key, role: "user" | "assistant" | "system", text }]: the messages at the start (a text: an answer)
	Placeholder    string // default: "Write a message"
	EmptyText      string // default: "". Shown while there is no message (Ex: "Ask something")
	SendText       string // default: "Send". The name of the button: a screen reader says it, the mouse shows it
	StopText       string // default: "Stop"
	ShowInput      any    // default: 1. 0: only the messages (the page has a field of its own)
	SendOnEnter    any    // default: 1. 1: Enter sends, Shift+Enter makes a new line. 0: Enter makes a new line, Ctrl / Cmd + Enter sends.
	MaxInputLines  any    // default: 6. The field grows up to this many lines, then it scrolls
	Busy           any    // default: 0. 1: an answer is coming: the dots, and Stop in the place of Send. setBusy()
	AutoScroll     any    // default: 1. 1: the view follows a new message and an answer that comes, until the reader scrolls up
	RemotePictures any    // default: 0. 1: a picture of an answer with an http address is drawn (See the note of MarkdownView)
	AriaLabel      string // default: "Conversation"
	CopyText       string // default: "Copy". The button of a code in an answer
	CopiedText     string // default: "Copied"
	OnSend         any    // default: a function. The user sent a text: its message (key) is on the view, the field is empty again
	OnStop         any    // default: a function. Stop was pressed (busy is 0 already)
	OnLinkClick    any    // default: a function. function (self, address) {}: a link of an answer comes to you. null: it opens in a new tab.
	StyleName      string // default: "light". "light", "dark", "minimal", "minimalDark" or a name added to ChatView.styles
	Style          P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

ChatViewProps are the params of a ChatView, by their names in the kit (comp/chat-view.js). A param that is not given keeps the default written next to it.

type CheckBoxProps

type CheckBoxProps struct {
	Key           any    // default: "0"
	Width         any    // default: "auto"
	Height        any    // default: "auto"
	Checked       any    // default: 0. 0, 1
	Enabled       any    // default: 1. 0, 1
	LabelText     string // default: ""
	AllowHtml     any    // default: 0. 1: labelText is HTML (only for your own texts)
	LabelPosition string // default: "right". "right", "left"
	WrapLabel     any    // default: 0. 1: a long label wraps (the check box needs a width); 0: one line
	Animated      any    // default: 0. 1: the square grows a little under the mouse, the tick draws in (box.setAnimated(0/1))
	OnChange      any    // default: a function. self.checked
	StyleName     string // default: "light". "light" ("classic": its old name), "modern", "dark", "minimal", "minimalDark" or a name added to CheckBox.styles
	Style         P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

CheckBoxProps are the params of a CheckBox, by their names in the kit (comp/check-box.js). A param that is not given keeps the default written next to it.

type CodeEditorProps

type CodeEditorProps struct {
	Key             any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left            any    // default: 0
	Top             any    // default: 0
	Width           any    // default: "100%"
	Height          any    // default: 320
	Value           any    // default: "". The text
	Language        string // default: "text". A name of CodeEditor.languages
	TabSize         any    // default: 4. The spaces of one level
	ReadOnly        any    // default: 0
	ShowLineNumbers any    // default: 1
	Placeholder     string // default: ""
	ChangeDelay     any    // default: 0. ms: onChange waits for the typing to rest
	AriaLabel       string // default: "Code"
	OnChange        any    // default: a function. self.value changed. (Not at create time, not with silent: 1)
	OnCursorChange  any    // default: a function. self.cursorLine, self.cursorColumn (from 1)
	StyleName       string // default: "light". "light", "dark" or a name added to CodeEditor.styles
	Style           P      // default: {...}. Light style package (default)

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

CodeEditorProps are the params of a CodeEditor, by their names in the kit (comp/code-editor.js). A param that is not given keeps the default written next to it.

type ColorPickerProps

type ColorPickerProps struct {
	Key           any    // default: "0"
	Width         any    // default: 170. Field width (not used if inline: 1)
	Height        any    // default: 44. Field height (not used if inline: 1)
	SelectedColor string // default: "". "#3871E0" or "" (nothing is selected). WHY: not "color", Box.color is the background.
	Colors        any    // default: [...]. The palette. Any CSS color text is accepted. ("red", "rgb(0, 0, 0)"...)
	Columns       any    // default: 5
	ShowText      any    // default: 1. 1: The color text is written in the field.
	Placeholder   string // default: "Select color"
	Inline        any    // default: 0. 1: The palette is always visible, no field.
	Enabled       any    // default: 1
	CloseOnSelect any    // default: 1
	OnChange      any    // default: a function. self.value ("#3871E0" or "")
	OnOpen        any    // default: a function
	OnClose       any    // default: a function
	StyleName     string // default: "light". "light" ("classic": its old name), "dark", "minimal", "minimalDark" or a name added to ColorPicker.styles
	Style         P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

ColorPickerProps are the params of a ColorPicker, by their names in the kit (comp/color-picker.js). A param that is not given keeps the default written next to it.

type ContextMenuProps

type ContextMenuProps struct {
	Key        any    // default: "0"
	Items      any    // default: []. [{ text, key, iconFile, enabled, data, onClick }, "-", "Text"]
	Target     any    // default: null. An object (or a list of objects). The menu opens on it with the trigger. One object: the menu is removed with it.
	Trigger    string // default: "contextmenu". "contextmenu": Right click, "click": Left click
	MinWidth   any    // default: 180
	MaxWidth   any    // default: 320. Long texts are cut with "...". 0: No limit.
	Enabled    any    // default: 1
	AriaLabel  string // default: "Menu"
	OnClick    any    // default: a function. self.source: The object that opened the menu.
	OnOpen     any    // default: a function
	OnClose    any    // default: a function
	OnSideKey  any    // default: a function. ArrowRight (1) / ArrowLeft (-1) that no submenu takes (MenuBar: the next menu)
	ParentMenu any    // default: null. (inside) The menu of a submenu: it handles the keys and the clicks outside for it.
	StyleName  string // default: "light". "light" ("classic": its old name), "dark", "minimal", "minimalDark" or a name added to ContextMenu.styles
	Style      P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Width    any // 120, "100%", "auto"
	Height   any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

ContextMenuProps are the params of a ContextMenu, by their names in the kit (comp/context-menu.js). A param that is not given keeps the default written next to it.

type CurrencyFieldProps

type CurrencyFieldProps struct {
	Required               any    // default: 0 (the kit alone: 0)
	TitleText              string // default: "" (the kit alone: "CURRENCY")
	Placeholder            string // default: "" (the kit alone: "(auto)")
	MaxLength              any    // default: 35
	AllowNegative          any    // default: 1
	AllowDecimal           any    // default: 1
	DecimalSeparator       string // default: ".". or ","
	MaxDecimalDigits       any    // default: 2
	GroupSeparator         string // default: ",". for thousands grouping
	UnitText               string // default: "TL"
	Key                    any    // default: "0"
	StyleName              string // default: "light" (the kit alone: "light"). "light", "dark", "modern" ("classic": its old name), "modernDark", "ozden", "ozdenDark", "minimal", "minimalDark" or a name added to TextField.styles
	Type                   string // default: "text"
	Width                  any    // default: 350
	Height                 any    // default: "auto"
	LeftPadding            any    // default: 20
	RightPadding           any    // default: 60
	TitleFontSize          any    // default: 16
	InputFontSize          any    // default: 20
	InputHeight            any    // default: 40. px: the row of the text
	FieldPadding           any    // default: 14. px: over and under the title and the text (titlePosition "inside")
	DescriptionFontSize    any    // default: 14
	TitlePosition          string // default: "inside". "inside": the title in the field, over the text. "above": the title over the field (the field is only the row of the text). (Only at create time)
	TitleGap               any    // default: 4. px between the title and the field (titlePosition "above")
	Value                  any    // default: ""
	ShowDescription        any    // default: 0
	DescriptionText        string // default: ""
	AllowHtml              any    // default: 0. 1: titleText, descriptionText and unitText are HTML (only for your own texts)
	BackgroundColor        string // default: "#F6F6F6"
	FocusBackgroundColor   string // default: "#F3F4E0"
	HoverBackgroundColor   string // default: "". the field under the mouse (not while it is selected). "": no change
	LineColor              string // default: "#373836"
	FocusLineColor         string // default: "#65A293"
	BackBorderColor        any    // default: Black(0)
	FocusBackBorderColor   any    // default: Black(0)
	HoverBackBorderColor   string // default: "". the edge under the mouse (not while it is selected). "": no change
	BackBorderTopRound     any    // default: 2
	BackBorderBottomRound  any    // default: 0
	TitleTextColor         string // default: "#555555"
	TitleBold              any    // default: 0. 1: the title in bold (opensans-bold)
	TitleLetterSpacing     string // default: "". "": normal. Ex: "0.06em"
	InputTextColor         string // default: "#373836"
	InputColorScheme       string // default: "". "": the page's. "dark": the autofill colors of the browser stay dark (on a dark field)
	PlaceholderColor       string // default: "". "": the color of the browser
	DescriptionTextColor   string // default: "#999999"
	WarningBallBorderColor string // default: "#373836"
	RequiredText           string // default: "Required"
	RequiredColor          string // default: "white"
	WarningText            string // default: "Invalid value format"
	WarningColor           string // default: "#E5885E"
	AnimatedWarningBall    any    // default: 1
	WarningBallType        string // default: "color". "color": colored ball, "icon": icon image
	WarningBallSize        any    // default: 16. px: the colored ball (warningBallType "color")
	WarningBallBorder      any    // default: 2. px: the edge of the colored ball (warningBallBorderColor)
	WarningBorderColor     string // default: "". the edge of the field while it shows a warning (not while typing). "": no change
	WarningIconSize        any    // default: 20
	RequiredIconFile       string // default: "". image path or data URI. "": built-in icon
	WarningIconFile        string // default: "". image path or data URI. "": built-in icon
	RequiredIconColor      string // default: "#373836". built-in required icon color (built-in warning icon uses warningColor)
	TooltipStyle           P      // default: {...}
	SelectStyle            P      // default: {...}
	ShowLeftBox            any    // default: 0
	ShowRightBox           any    // default: 0
	ShowUnit               any    // default: 0
	CreateInput            any    // default: 1
	UnitStyle              P      // default: {...}
	OnFocus                any    // default: a function
	OnBlur                 any    // default: a function
	OnChange               any    // default: a function. the user changed the text (not at create time, not by setValue())

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Style    P // keys of its look, over its package: ozdenui.P{"box": ozdenui.P{"round": 12}}
	Visible  any
	Opacity  any
	OnEnter  any  // the Enter key: func() or func(field *ozdenui.Object)
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

CurrencyFieldProps are the params of a CurrencyField, by their names in the kit (comp/currency-field.js). A param that is not given keeps the default written next to it.

type DataTableProps

type DataTableProps struct {
	Width         any    // default: 600
	Height        any    // default: 400
	Columns       any    // default: []. See "A COLUMN" above.
	Rows          any    // default: []. [[1, "John", "Paris"], ...] or [{ id: 1, name: "John", city: "Paris" }, ...]
	IdIndex       any    // default: 0. The id of a row array: row[idIndex]
	IdKey         any    // default: "id". The id of a row object: row[idKey]
	SortKey       any    // default: "". "": the order of the data
	SortDirection string // default: "asc". "asc" or "desc"
	CanSelect     any    // default: 1. 0: a click runs onRowClick, no row is selected
	RowHeight     any    // default: "auto". "auto": as high as its text (more lines); a number: one line, cut with "..."
	TitleText     string // default: "". "": no title in the header
	ShowSearch    any    // default: 0. 1: a search box in the header (comp/search-input.js SearchInput must be loaded)
	SearchParams  P      // default: {}. More params of the SearchInput. Ex: { placeholder: "Ara" }
	EmptyText     string // default: "There are no records."
	NoResultText  string // default: "No records found."
	SortIconFile  string // default: "data:image/svg+xml;utf8," + encodeURIComponent('<?xml ve...
	UseScrollBar  any    // default: 1. basic/scroll-bar.js ScrollBar
	OnRowClick    any    // default: a function. A click on a row, or Enter on the selected row
	OnSelect      any    // default: a function. The selected row changed (row: null when nothing is selected). Not with silent: 1
	OnSort        any    // default: a function. self.sortKey, self.sortDirection
	StyleName     string // default: "light". "light" ("classic": its old name), "plain", "dark", "minimal", "minimalDark" or a name added to DataTable.styles
	Style         P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

DataTableProps are the params of a DataTable, by their names in the kit (comp/data-table.js). A param that is not given keeps the default written next to it.

type DatePickerProps

type DatePickerProps struct {
	Key             any    // default: "0"
	Width           any    // default: 220. Field width (not used if inline: 1)
	Height          any    // default: 44. Field height (not used if inline: 1)
	Date            any    // default: null. Date, "YYYY-MM-DD" or null
	MinDate         any    // default: null. Date, "YYYY-MM-DD" or null
	MaxDate         any    // default: null. Date, "YYYY-MM-DD" or null
	Format          string // default: "DD.MM.YYYY". Tokens: YYYY, MMMM, MMM, MM, M, DD, D, dddd, ddd
	Language        string // default: "en". "en", "tr"
	FirstDayOfWeek  any    // default: 1. 0: Sunday, 1: Monday
	Placeholder     string // default: "". Empty: uses the language text
	Inline          any    // default: 0. 1: Calendar is always visible, no field.
	Scale           any    // default: null. Multiplies every size. null: basic.uiScale (1, or 1 / page.zoom on a fitted page). (Only at create time)
	Enabled         any    // default: 1
	CloseOnSelect   any    // default: 1
	ShowTodayButton any    // default: 1
	ShowClearButton any    // default: 1
	OnChange        any    // default: a function. self.date (Date or null), self.value ("YYYY-MM-DD"), self.dateText
	OnOpen          any    // default: a function
	OnClose         any    // default: a function
	StyleName       string // default: "light". "light" ("classic": its old name), "dark", "minimal", "minimalDark" or a name added to DatePicker.styles
	Style           P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

DatePickerProps are the params of a DatePicker, by their names in the kit (comp/date-picker.js). A param that is not given keeps the default written next to it.

type DialogOptions

type DialogOptions struct {
	Title       string
	ConfirmText string // the button that says yes ("Confirm", "OK")
	CancelText  string
	Danger      bool   // Confirm(): the yes button is red (a delete)
	Value       string // Prompt(): the text in the field at the start
	Placeholder string // Prompt()
	FieldText   string // Prompt(): the title of the field
	Required    bool   // Prompt(): an empty answer is not taken
}

DialogOptions are the texts of a dialog; what is not given keeps the text of the kit.

type DialogProps

type DialogProps struct {
	Key           any    // default: "0"
	Width         any    // default: 460. the card (a number); a small screen: as wide as the screen
	TitleText     string // default: ""
	MessageText   string // default: ""
	AllowHtml     any    // default: 0. 1: the title and the message are HTML (only for your own texts)
	Fields        any    // default: []. [{ key, titleText, placeholder, value, required, validate }]
	Content       any    // default: null. function (dialog) {}: objects in the body
	Buttons       any    // default: []. [{ text, type, key, iconFile, align, ask, ariaLabel, onClick }]
	CloseOnCover  any    // default: 1. a click on the cover closes it
	CloseOnEscape any    // default: 1
	AutoOpen      any    // default: 1
	RemoveOnClose any    // default: 1. 0: close() only hides it; open() shows it again
	AriaLabel     string // default: "". when there is no title
	Variant       string // default: "". "": the buttons in a row at the bottom; "centered": the texts in the middle, the buttons one under the other
	TopIconFile   string // default: "". "centered": the icon at the top (a file, or an "<svg" text drawn with currentColor or LIGHT / STRONG)
	TopIconTone   string // default: "". "centered": "cyan", "orange", "yellow", "green", "blue": the circle and the icon in its tones; "": gray
	Scale         any    // default: null. every size multiplied (Ex: 1.5). null: basic.uiScale (1 / page.zoom on a page fitted with page.fit())
	OnOpen        any    // default: a function
	OnClose       any    // default: a function. reason: "button", "escape", "cover", "api"
	StyleName     string // default: "ozden". "ozden", "ozdenDark", "minimal", "minimalDark" or a name added to Dialog.styles
	Style         P      // default: {...}. The ozden style package (default): the first dialog of smart-button-3-ozden.htm

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Height   any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

DialogProps are the params of a Dialog, by their names in the kit (comp/dialog.js). A param that is not given keeps the default written next to it.

type EmailFieldProps

type EmailFieldProps struct {
	Required               any    // default: 0 (the kit alone: 1)
	Type                   string // default: "email"
	TitleText              string // default: "" (the kit alone: "EMAIL")
	Placeholder            string // default: "example@site.com"
	WarningText            string // default: "Invalid email format"
	WarningColor           string // default: "#E5885E"
	MaxLength              any    // default: 254 (the kit alone: 40)
	Key                    any    // default: "0"
	StyleName              string // default: "light" (the kit alone: "light"). "light", "dark", "modern" ("classic": its old name), "modernDark", "ozden", "ozdenDark", "minimal", "minimalDark" or a name added to TextField.styles
	Width                  any    // default: 350
	Height                 any    // default: "auto"
	LeftPadding            any    // default: 20
	RightPadding           any    // default: 60
	TitleFontSize          any    // default: 16
	InputFontSize          any    // default: 20
	InputHeight            any    // default: 40. px: the row of the text
	FieldPadding           any    // default: 14. px: over and under the title and the text (titlePosition "inside")
	DescriptionFontSize    any    // default: 14
	TitlePosition          string // default: "inside". "inside": the title in the field, over the text. "above": the title over the field (the field is only the row of the text). (Only at create time)
	TitleGap               any    // default: 4. px between the title and the field (titlePosition "above")
	Value                  any    // default: ""
	ShowDescription        any    // default: 0
	DescriptionText        string // default: ""
	AllowHtml              any    // default: 0. 1: titleText, descriptionText and unitText are HTML (only for your own texts)
	BackgroundColor        string // default: "#F6F6F6"
	FocusBackgroundColor   string // default: "#F3F4E0"
	HoverBackgroundColor   string // default: "". the field under the mouse (not while it is selected). "": no change
	LineColor              string // default: "#373836"
	FocusLineColor         string // default: "#65A293"
	BackBorderColor        any    // default: Black(0)
	FocusBackBorderColor   any    // default: Black(0)
	HoverBackBorderColor   string // default: "". the edge under the mouse (not while it is selected). "": no change
	BackBorderTopRound     any    // default: 2
	BackBorderBottomRound  any    // default: 0
	TitleTextColor         string // default: "#555555"
	TitleBold              any    // default: 0. 1: the title in bold (opensans-bold)
	TitleLetterSpacing     string // default: "". "": normal. Ex: "0.06em"
	InputTextColor         string // default: "#373836"
	InputColorScheme       string // default: "". "": the page's. "dark": the autofill colors of the browser stay dark (on a dark field)
	PlaceholderColor       string // default: "". "": the color of the browser
	DescriptionTextColor   string // default: "#999999"
	WarningBallBorderColor string // default: "#373836"
	RequiredText           string // default: "Required"
	RequiredColor          string // default: "white"
	AnimatedWarningBall    any    // default: 1
	WarningBallType        string // default: "color". "color": colored ball, "icon": icon image
	WarningBallSize        any    // default: 16. px: the colored ball (warningBallType "color")
	WarningBallBorder      any    // default: 2. px: the edge of the colored ball (warningBallBorderColor)
	WarningBorderColor     string // default: "". the edge of the field while it shows a warning (not while typing). "": no change
	WarningIconSize        any    // default: 20
	RequiredIconFile       string // default: "". image path or data URI. "": built-in icon
	WarningIconFile        string // default: "". image path or data URI. "": built-in icon
	RequiredIconColor      string // default: "#373836". built-in required icon color (built-in warning icon uses warningColor)
	TooltipStyle           P      // default: {...}
	SelectStyle            P      // default: {...}
	ShowLeftBox            any    // default: 0
	ShowRightBox           any    // default: 0
	ShowUnit               any    // default: 0
	CreateInput            any    // default: 1
	UnitText               string // default: ""
	UnitStyle              P      // default: {...}
	OnFocus                any    // default: a function
	OnBlur                 any    // default: a function
	OnChange               any    // default: a function. the user changed the text (not at create time, not by setValue())

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Style    P // keys of its look, over its package: ozdenui.P{"box": ozdenui.P{"round": 12}}
	Visible  any
	Opacity  any
	OnEnter  any  // the Enter key: func() or func(field *ozdenui.Object)
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

EmailFieldProps are the params of a EmailField, by their names in the kit (comp/email-field.js). A param that is not given keeps the default written next to it.

type Event

type Event struct {
	Name   string // "click", "keydown"...
	Key    string // a key event: "Enter", "a", "ArrowLeft"
	Code   string // "KeyA"
	Shift  bool
	Ctrl   bool
	Alt    bool
	Meta   bool
	X      float64 // a mouse event: its place in the window
	Y      float64
	Text   string // an Input: its text
	Detail any    // an event of a component with values of its own
}

Event is what the page tells of an event of an object.

type FileOptions

type FileOptions struct {
	Title     string
	Directory string   // the folder it opens in
	FileName  string   // SaveFile(): the name it offers
	Types     []string // the endings it shows: []string{"png", "jpg"}
}

FileOptions are what a file dialog starts with.

type FilePickerProps

type FilePickerProps struct {
	Key             any    // default: "0"
	Width           any    // default: 360
	Height          any    // default: "auto"
	ZoneHeight      any    // default: 170
	Multiple        any    // default: 0. 1: Select more than one file. New files are added to the list.
	Directory       any    // default: 0. 1: Select a folder (all files in it). Click only, not drag.
	Accept          string // default: "". Ex: "image/*", ".pdf,.docx", "image/png,image/jpeg"
	MaxSize         any    // default: 0. Bytes. 0: No limit. Ex: 5 * 1024 * 1024 (5 MB)
	MaxFiles        any    // default: 0. 0: No limit (only for multiple: 1)
	Enabled         any    // default: 1
	ShowIcon        any    // default: 1. 0: Hide the upload icon. (A zone too low for it hides it by itself.)
	IconSvg         string // default: "". An "<svg" text of your own, drawn with currentColor. Empty: the icon of the style (box.setIconSvg())
	IconFile        string // default: "". A picture of your own (a path or a data: address) in the place of the icon, with its own colors (box.setIcon())
	Animated        any    // default: 0. 1: the icon lifts under the mouse, and more while a file is dragged over. (box.setAnimated(0/1))
	ShowList        any    // default: 1
	ShowPreview     any    // default: 1. Image thumbnails in the list.
	PreventPageDrop any    // default: 1. 1: A file dropped outside the zone does not open in the browser tab.
	TitleText       string // default: "Drag and drop a file here"
	DescriptionText string // default: "or click to select"
	HintText        string // default: "". Empty: created from accept and maxSize
	DropText        string // default: "Drop to add"
	AllowHtml       any    // default: 0. 1: titleText, descriptionText and dropText are HTML (only for your own texts)
	OnChange        any    // default: a function. self.files: [{ file, name, displayName, path, size, sizeText, type, extension, lastModified }]
	OnError         any    // default: a function. errors: [{ type: "accept" | "maxSize" | "maxFiles", name, message }]
	OnOpenDialog    any    // default: a function. function (self): the dialog of a program, in the place of the dialog of the page (see above)
	StyleName       string // default: "light". "light" ("classic": its old name), "dark", "minimal", "minimalDark" or a name added to FilePicker.styles
	Style           P      // default: {...}

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

FilePickerProps are the params of a FilePicker, by their names in the kit (comp/file-picker.js). A param that is not given keeps the default written next to it.

type FiltersProps

type FiltersProps struct {
	Key               any    // default: "0". Your name for this object: read it in a callback (self.key)
	Width             any    // default: 380. The width of the panel (the button stands at its right)
	Height            any    // default: "auto". The button and the panel
	PanelHeight       any    // default: 620
	PanelOpened       any    // default: 1. 0: only the button; a click opens the panel
	PanelMode         string // default: "inline"
	ButtonText        string // default: "Filters"
	SearchPlaceholder string // default: "Search"
	SelectedText      string // default: "Selected"
	ClearText         string // default: "Clear all"
	NoResultText      string // default: "No results"
	Sections          any    // default: []
	Animated          any    // default: 0. 1: the panel and an opened section come in, the arrows turn (box.setAnimated(0/1))
	SearchInputParams P      // default: { styleName: "ozden", width: "100%", height: 50, fontSize...
	CheckBoxParams    P      // default: { styleName: "light", style: {} }
	OnChange          any    // default: a function. The selection changed: self.getSelected(). (Not at create time, not with silent: 1)
	OnPanelToggle     any    // default: a function. The panel opened / closed: self.panelOpened
	StyleName         string // default: "light". "light" or a name added to Filters.styles
	Style             P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

FiltersProps are the params of a Filters, by their names in the kit (comp/filters.js). A param that is not given keeps the default written next to it.

type FormProps

type FormProps struct {
	MinWidth                    any    // default: 500
	MaxWidth                    any    // default: 700
	ButtonColor                 string // default: "#65A293"
	ButtonText                  string // default: "SEND"
	AllowHtml                   any    // default: 0. 1: buttonText and the texts of showMessage() are HTML (only for your own texts)
	ShowDetailWarning           any    // default: 1
	MissingEntryText            string // default: "{{count}} missing entry"
	MissingEntriesText          string // default: "{{count}} missing entries"
	WarningText                 string // default: "<b>{{name}}</b> can't be empty". HTML of the page; {{name}}: the title of the field, as it is written
	ErrorText                   string // default: "<b>{{name}}</b> is not valid". HTML of the page, as warningText
	MinimalButton               any    // default: 0
	DoubleInputAlwaysHorizontal any    // default: 0
	ShowPassiveButtonHint       any    // default: 1. 1: A hint is shown when the mouse is over the passive send button.
	PassiveButtonHintText       string // default: "Please fill in the missing fields to send the form."
	HintRound                   any    // default: 4
	OnChange                    any    // default: a function. the user changed an input of the form
	OnSendClick                 any    // default: a function

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	Width     any // 120, "100%", "auto"
	Height    any
	StyleName string // the package of its look (see the function)
	Style     P      // keys of its look, over its package: ozdenui.P{"box": ozdenui.P{"round": 12}}
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

FormProps are the params of a Form, by their names in the kit (comp/form.js). A param that is not given keeps the default written next to it.

type FullScreenSelectProps

type FullScreenSelectProps struct {
	Width          any    // default: 200
	Height         any    // default: 50
	Items          any    // default: []. [{ key, text }] or ["Text"] (the text is its key)
	SelectedKey    any    // default: null. null: the first item
	Placeholder    string // default: "Search"
	EmptyText      string // default: "No results"
	AutoWidth      any    // default: 0. 1: the field is as wide as the text of the selected item
	ShowSearch     any    // default: 1. 0: no search box (a short list)
	ArrowIconFile  string // default: "data:image/svg+xml;utf8," + encodeURIComponent('<?xml ve...
	CloseIconFile  string // default: "data:image/svg+xml;utf8," + encodeURIComponent('<?xml ve...
	SearchIconFile string // default: "". The icons of the search box. "": the files of SearchInput (or of its style package)
	ClearIconFile  string // default: ""
	AriaLabel      string // default: "". "": the text of the selected item is read
	OnChange       any    // default: a function. self.selectedKey changed (not at create time, not with silent: 1)
	OnOpen         any    // default: a function
	OnClose        any    // default: a function
	StyleName      string // default: "light". "light" ("classic": its old name), "dark" or a name added to FullScreenSelect.styles
	Style          P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

FullScreenSelectProps are the params of a FullScreenSelect, by their names in the kit (comp/full-screen-select.js). A param that is not given keeps the default written next to it.

type GaugeProps

type GaugeProps struct {
	Key         any    // default: "0"
	Width       any    // default: 180
	Height      any    // default: 180
	Value       any    // default: 0
	MinValue    any    // default: 0
	MaxValue    any    // default: 100
	StartAngle  any    // default: 0. 0: the top (12 o'clock). They grow clockwise.
	SweepAngle  any    // default: 360. 360: a full ring. 180: a half arc.
	Radius      any    // default: 74
	MarkerValue any    // default: null. null: no marker line. (A target, a reserve, a limit...)
	ValueText   string // default: "". "": the value itself, with decimals and valueSuffix.
	ValueSuffix string // default: "%"
	Decimals    any    // default: 0
	SubText     string // default: "". The small line under the value.
	TitleText   string // default: "". Under the whole gauge.
	Duration    any    // default: 600. Length of the animation, in milliseconds.
	AriaLabel   string // default: "Gauge"
	OnChange    any    // default: a function
	StyleName   string // default: "light". "light" ("classic": its old name), "dark", "modern" or a name added to Gauge.styles
	Style       P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

GaugeProps are the params of a Gauge, by their names in the kit (comp/gauge.js). A param that is not given keeps the default written next to it.

type GraphBoxProps

type GraphBoxProps struct {
	Key           any    // default: "0"
	Width         any    // default: 500
	Height        any    // default: 300
	Type          string // default: "line". "line", "area", "bar", "pie", "doughnut", "radar", "scatter", "bubble"
	Theme         string // default: "light". "light", "dark", "auto" (follows the system setting), "minimal", "minimalDark"
	TitleText     string // default: ""
	SubtitleText  string // default: ""
	Labels        any    // default: null. ["Jan", "Feb", "Mar"]
	Values        any    // default: null. [12, 19, 7] Shortcut: creates one dataset.
	Datasets      any    // default: null. [{ label: "2026", data: [12, 19, 7], ...see A DATASET above }]
	Data          any    // default: null. { labels, datasets } (Used instead of labels, values and datasets.)
	Legend        string // default: "auto"
	Stacked       any    // default: 0. 1: Bars one on the other, lines and areas over each other. The tooltip adds totalText.
	Horizontal    any    // default: 0. 1: The values grow to the right. (Long names read better so.)
	TotalText     string // default: "Total". The last row of the tooltip of a stacked chart. "": No total
	TargetLines   any    // default: null. [{ value: 90000, label: "Target", color: "" }] No label: its value. label: "": No text.
	MaxSlices     any    // default: 8. A pie, a doughnut: at most this many slices; the smallest ones become "Other". 0: No limit.
	OtherText     string // default: "Other". The name of that slice
	CenterText    string // default: "". The big text in the middle of a doughnut. Ex: "1,284"
	CenterSubText string // default: "". The small text under it. Ex: "Users"
	BeginAtZero   any    // default: 1. 1: The value axis holds 0. (A bar chart always holds it: the length of a bar is its value.)
	MinValue      any    // default: null. null: From the values.
	MaxValue      any    // default: null. null: From the values. Ex: 100
	SoftMinValue  any    // default: null. The axis goes at least this low. Unlike minValue, a smaller value still widens it.
	SoftMaxValue  any    // default: null. The axis goes at least this high. Ex: 260
	ValueStep     any    // default: 0. 0: The axis finds its own step. Ex: 1: a line and a text for every whole number.
	MinX          any    // default: null. scatter, bubble: the limits of the x axis. null: From the values. (They do not hold 0 by themselves.)
	MaxX          any    // default: null
	SizeText      string // default: "Size". bubble: the name of its size in the tooltip
	XAxisText     string // default: "". A small title under the chart. Ex: "Height (cm)"
	YAxisText     string // default: "". A small title at the left of the chart, turned. Ex: "Weight (kg)"
	ShowValues    any    // default: 0. 1: The values on the chart, only where they fit.
	TableView     any    // default: 0. 1: A table of the values in place of the chart. setTableView()
	TableHeadText string // default: "". The title of the first column of the table
	MaxLabels     any    // default: 0. At most this many labels on the index axis. 0: As many as fit.
	Curve         string // default: "linear". "linear", "smooth" (never goes over a value)
	ShowPoints    any    // default: "auto". "auto": When there is room for them. 1, 0
	FormatValue   any    // default: null. a Format text, made by the page at once: "{:,.2f} TL", "{:.0f} kg", "{:.1%}" (not a function)
	FormatX       any    // default: null. a Format text, made by the page at once: "{:,.2f} TL", "{:.0f} kg", "{:.1%}" (not a function)
	Locale        string // default: "". "": The language of the browser. Ex: "tr-TR"
	MaxCount      any    // default: 0. addValue(): 0: No limit. Ex: 20 (the first value is removed, for live data)
	EmptyText     string // default: "No data". In the middle of a chart with no values. "": Nothing
	Animated      any    // default: 0. 1: Small motions when the data changes. setAnimated()
	OnClick       any    // default: a function. item: { datasetIndex, index, label, value, datasetLabel, dataset }
	Style         P      // default: {...}

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

GraphBoxProps are the params of a GraphBox, by their names in the kit (comp/graph-box.js). A param that is not given keeps the default written next to it.

type GridGroupProps

type GridGroupProps struct {
	Width       any    // default: "100%"
	Height      any    // default: "auto". "auto": as high as its rows.
	Columns     any    // default: 2. A number, a list ([120, "1fr", "auto"]) or a text (CSS)
	Rows        any    // default: null. null: as many as the objects need. A number, a list or a text, as columns.
	Gap         any    // default: 0. px, or [column gap, row gap]
	Align       string // default: "". "": the objects fill their cells. "left center", "center"...: where each one stands in its cell.
	ClipContent any    // default: 0

	Padding   any // 20 or []int{x, y}: the room between its edge and its objects
	Color     any // its ground
	Round     any // its corners, px
	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	StyleName string // the package of its look (see the function)
	Style     P      // keys of its look, over its package: ozdenui.P{"box": ozdenui.P{"round": 12}}
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

GridGroupProps are the params of a GridGroup, by their names in the kit (comp/grid-group.js). A param that is not given keeps the default written next to it.

type HoldToConfirmButtonProps

type HoldToConfirmButtonProps struct {
	Key             any    // default: "0"
	Width           any    // default: "auto"
	Height          any    // default: 50
	LabelText       string // default: "Hold to Delete". Hold to Vanish, Hold to Delete
	CompletedText   string // default: "DELETED". Poof! And it's gone.  // DELETED // REMOVED
	AllowHtml       any    // default: 0. 1: labelText and completedText are HTML (only for your own texts)
	IconFile        string // default: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xml.... a bin (a page can give its own picture)
	HoldingIconFile string // default: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xml.... the bin in red while it is held
	OnConfirm       any    // default: a function
	OnReset         any    // default: a function
	HoldDuration    any    // default: 3000. ms
	ResetDelay      any    // default: 3000. ms: the completed text stays this long
	Style           P      // default: {...}

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

HoldToConfirmButtonProps are the params of a HoldToConfirmButton, by their names in the kit (comp/hold-to-confirm-button.js). A param that is not given keeps the default written next to it.

type ImageViewProps

type ImageViewProps struct {
	Key           any    // default: "0". Your name for this object: read it in a callback (self.key)
	Width         any    // default: "100%"
	Height        any    // default: 360
	ImageFile     string // default: "". A file, an address or a data: address. "": empty
	AltText       string // default: "". What the picture shows, for a screen reader
	MinZoom       any    // default: 0.1. 1 is 100%. (A big picture can always go down to its fitted size.)
	MaxZoom       any    // default: 8
	ZoomStep      any    // default: 1.25. A button or a key: multiplies the zoom
	EnlargeToFit  any    // default: 0. 1: a picture smaller than the box also grows to fit (a vector drawing). 0: it stays at 100%
	WheelZoom     any    // default: 1. 0: the wheel is left to the page around it (a viewer in a long page)
	PixelatedZoom any    // default: 3. From this zoom the pixels stay sharp. 0: never
	ShowToolbar   any    // default: 1
	EmptyText     string // default: "No image"
	ErrorText     string // default: "This image can not be opened."
	AriaLabel     string // default: "Image viewer"
	ButtonTexts   P      // default: { zoomOut: "Zoom out", actualSize: "Actual size", zoomIn:.... For a screen reader
	OnLoad        any    // default: a function. self.naturalWidth, self.naturalHeight
	OnError       any    // default: a function
	OnZoomChange  any    // default: a function. self.zoomLevel
	StyleName     string // default: "light". "light", "dark" or a name added to ImageView.styles
	Style         P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

ImageViewProps are the params of a ImageView, by their names in the kit (comp/image-view.js). A param that is not given keeps the default written next to it.

type ItemListProps

type ItemListProps struct {
	Key              any    // default: "0". Your name for this object: read it in a callback (self.key)
	Width            any    // default: 600
	Height           any    // default: 400. "auto": grows with the rows (no scrolling)
	Items            any    // default: []. Strings or { key, text, description, iconFile, searchText, enabled }. A title row: { type: "section", text: "VIEWS" }
	Layout           string // default: "vertical". "vertical", "horizontal", "grid"
	Selection        string // default: "single". "single", "multiple", "none"
	SelectedKeys     any    // default: []. The keys selected at create time
	ScrollToSelected any    // default: 1. 1: the list scrolls to the selected item at create time and after setSelected() / select()
	Animated         any    // default: 0. 1: addItem / removeItem move the rows (a new row fades in, a removed one fades out). setAnimated(0/1)
	ShowSearch       any    // default: 0. 1: a search box over the list (comp/search-input.js SearchInput must be loaded)
	SearchParams     P      // default: {}. More params of the SearchInput. Ex: { placeholder: "Ara", searchIconFile: "comp/search-input/search.svg" }
	EmptyText        string // default: "No items"
	NoResultText     string // default: "No results"
	Enabled          any    // default: 1
	UseScrollBar     any    // default: 1. basic/scroll-bar.js. 0: the scrollbar of the browser.
	AriaLabel        string // default: "List"
	OnItemClick      any    // default: a function
	OnChange         any    // default: a function. Not at create time, not by setItems(), not with silent: 1
	StyleName        string // default: "ozden". "ozden", "ozdenDark", "light", "dark", "gallery", "galleryDark", "minimal", "minimalDark" or a name added to ItemList.styles
	Style            P      // default: {...}. The ozden style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

ItemListProps are the params of a ItemList, by their names in the kit (comp/item-list.js). A param that is not given keeps the default written next to it.

type JsonEditorProps

type JsonEditorProps struct {
	Key           any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left          any    // default: 0
	Top           any    // default: 0
	Width         any    // default: "100%"
	Height        any    // default: 400
	Value         any    // default: []. A list or an object (or its JSON text). The editor reads it into its rows: the value of the page does not change.
	TitleText     string // default: "". The name of the value at the start of the path. "": texts.list or texts.object
	NoteText      string // default: "". A soft line under the title (Ex: what a row holds)
	Columns       any    // default: []. [A COLUMN] (See A COLUMN above): the columns of an empty list; the kind and the choices of a column
	ShowTitleBar  any    // default: "auto". "auto": when there is a title, a note or a table opened in a cell. 1: always
	ShowHint      any    // default: 1. The keys of the cells at the bottom
	PictureBase   string // default: "". The address the relative pictures of the cells are read from. "": the page
	AriaLabel     string // default: "". "": the titleText
	Texts         P      // default: {...}
	OnChange      any    // default: a function. The value changed in the table: a list or an object. (Not at create time, not with setValue())
	OnPickColor   any    // default: a function. function (self, cell) { }: your own color picker for a color cell (See A CELL above). null: the one of the browser
	OnPickPicture any    // default: a function. function (self, cell) { }: a list of pictures for a picture cell (a click on its picture). null: the address is written
	ColorOf       any    // default: null. function (value, self) { return a color }: the color a swatch paints, when only the page can read it (Ex: a token of another document). null: the value
	OptionsOf     any    // default: null. function (key, value, self) { return [choices] or null }: the choices of a text of this name (a column, a row of an object), besides columns
	StyleName     string // default: "light". "light", "dark", "minimal", "minimalDark" or a name added to JsonEditor.styles
	Style         P      // default: {...}. Light style package (default)

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

JsonEditorProps are the params of a JsonEditor, by their names in the kit (comp/json-editor.js). A param that is not given keeps the default written next to it.

type JsonViewProps

type JsonViewProps struct {
	Key           any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left          any    // default: 0
	Top           any    // default: 0
	Width         any    // default: "100%"
	Height        any    // default: "100%". A number or "100%": its rows scroll inside it. "auto": it grows with its rows.
	Value         any    // default: null. A value of JSON. null: emptyText
	ExpandLevel   any    // default: 1. How many levels are open at the start. 0: only the first rows, closed.
	PageSize      any    // default: 100. A list or an object with more items than this comes in pages.
	EmptyText     string // default: "No value"
	CopyValueText string // default: "Copy value"
	CopyPathText  string // default: "Copy path"
	UseScrollBar  any    // default: 1. basic/scroll-bar.js (when it is loaded), with a height that is not "auto". 0: the scrollbar of the browser
	AriaLabel     string // default: "JSON"
	OnSelect      any    // default: a function. A row was chosen (See AN ENTRY above). (Not at create time, not with selectPath())
	OnCopy        any    // default: a function. A value or a path is on the clipboard.
	StyleName     string // default: "light". "light", "dark" or a name added to JsonView.styles
	Style         P      // default: {...}. Light style package (default)

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

JsonViewProps are the params of a JsonView, by their names in the kit (comp/json-view.js). A param that is not given keeps the default written next to it.

type LabelEditorProps

type LabelEditorProps struct {
	Key            any    // default: "0"
	Width          any    // default: 860
	Height         any    // default: 540
	Labels         any    // default: []. Start labels: [{ text, fontSize, ... , styleName }]
	SavedStyles    any    // default: []. Start styles: [{ name, props: { fontSize, textColor, ... } }] (storageKey wins when it has data)
	StorageKey     any    // default: "". "": the saved styles are not kept. Ex: "label-editor-styles"
	NewLabel       P      // default: {...}. Properties of a new label
	ColorPalette   any    // default: [...]. The colors of the color pickers in the panel
	PanelWidth     any    // default: 340
	UseScrollBar   any    // default: 1
	Texts          P      // default: {...}
	OnChange       any    // default: a function. The labels changed. self.getLabels()
	OnSelect       any    // default: a function. index: -1 when nothing is selected
	OnStylesChange any    // default: a function. The saved styles changed. self.getSavedStyles()
	StyleName      string // default: "light". "light" ("classic": its old name), "dark" or a name added to LabelEditor.styles
	Style          P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

LabelEditorProps are the params of a LabelEditor, by their names in the kit (comp/label-editor.js). A param that is not given keeps the default written next to it.

type LeftMenuProps

type LeftMenuProps struct {
	Key               any    // default: "0"
	ExpandedWidth     any    // default: 250. Expanded width on hover
	ItemHeight        any    // default: 40. The height of a button item
	TopBarHeight      any    // default: 40. Height of top bar to account for
	BackgroundColor   string // default: "#141414". Menu background color
	HoverColor        string // default: "rgba(255, 255, 255, 0.05)". Hover color for buttons
	SelectedColor     string // default: "#583432". Selected button color
	TitleColor        string // default: "#8E342F"
	TextColor         string // default: "rgba(255, 255, 255, 0.6)". Text color
	SelectedTextColor string // default: "rgba(255, 255, 255, 0.95)"
	AllowHtml         any    // default: 0. 1: the texts of the items are HTML (only for your own texts)
	InvertIconColor   any    // default: 1
	LineColor         string // default: "". A line at the right side of the menu ("": none)
	ExpandedShadow    any    // default: "". The shadow of the open menu over the page ("": none). Ex: "6px 0 18px rgba(0, 0, 0, 0.08)"
	ScrollBarColor    string // default: "#FFFFFF". The bar of the scroll of the items (a dark one on a light menu)
	OpenOnClick       any    // default: "auto". "auto": Tap on a touch device, hover with a mouse. 1: Always tap, 0: Always hover.
	Items             any    // default: []. [{ key, type: "button", text, iconFile }, { key, type: "header", text }]
	OnItemClick       any    // default: a function. Callback when item is clicked
	OnMenuToggle      any    // default: a function. Callback when menu expands/collapses
	StyleName         string // default: "dark". "dark", "light" or a name added to LeftMenu.styles
	Style             P      // default: {}. WHY: the look is in the flat params above; the packages are packages of params (LeftMenu.styles)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Width    any // 120, "100%", "auto"
	Height   any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

LeftMenuProps are the params of a LeftMenu, by their names in the kit (comp/left-menu.js). A param that is not given keeps the default written next to it.

type LineProgressBarProps

type LineProgressBarProps struct {
	Width           any    // default: 300
	Height          any    // default: 50
	Progress        any    // default: 0. 0 to 100
	PrimaryColor    string // default: "indianred". the full lines
	SecondaryColor  string // default: "lightgray". the empty lines
	LineWidth       any    // default: 1. px
	LineGap         any    // default: 3. px between two lines
	LineRound       any    // default: 3. px, or "full": the top and the bottom of a line are half circles
	HeadGrow        any    // default: 1. 1: the line at the progress and its two neighbors are wider and longer; 0: every line the same
	ShowValueLabel  any    // default: false. the value in a small label for a moment when it changes
	ValueBubble     any    // default: 0. 1: the value all the time in a bubble with an arrow over the last full line (comp/tooltip.js)
	ValueBubbleLook P      // default: {}. the keys of Tooltip.BUBBLE_LOOK (its color: primaryColor)
	Animated        any    // default: 0. 1: the bubble of the value slides to a new value (box.setAnimated(0/1))
	BackgroundColor string // default: "transparent"

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	StyleName string // the package of its look (see the function)
	Style     P      // keys of its look, over its package: ozdenui.P{"box": ozdenui.P{"round": 12}}
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

LineProgressBarProps are the params of a LineProgressBar, by their names in the kit (comp/line-progress-bar.js). A param that is not given keeps the default written next to it.

type LoadingScreenProps

type LoadingScreenProps struct {
	Left          any    // default: 0
	Top           any    // default: 0
	Width         any    // default: "100%"
	Height        any    // default: "100%"
	StyleName     string // default: "light". "light", "dark", "ozden", "ozdenDark", "minimal", "minimalDark" or a name added to LoadingScreen.styles
	IconFile      string // default: "". An image file (Ex: the app icon)
	IconSvg       string // default: "". Or an SVG text (works with no file, also offline)
	TitleText     string // default: ""
	AllowHtml     any    // default: 0. 1: titleText and messageText are HTML, only for your own texts (Ex: "Please wait.<br>It takes a few seconds.")
	MessageText   string // default: ""
	SpinnerType   string // default: "clock". "clock" (the default wait, the user), "ring", "dots", "none"
	Progress      any    // default: -1. 0 - 1: a progress bar is shown. -1: no progress bar
	Opened        any    // default: 1. 0: created closed, open() shows it
	MinDuration   any    // default: 600. ms. A close() before this time waits. (No short flash on a fast load)
	FadeDuration  any    // default: 0.35. seconds
	RemoveOnClose any    // default: 0. 1: The object is removed after it is closed (a splash screen that is used once)
	OnClose       any    // default: a function. After the fade out
	Style         P      // default: {...}

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

LoadingScreenProps are the params of a LoadingScreen, by their names in the kit (comp/loading-screen.js). A param that is not given keeps the default written next to it.

type LogViewProps

type LogViewProps struct {
	Key          any    // default: "0". Your name for this object: read it in a callback (self.key)
	Width        any    // default: "100%"
	Height       any    // default: 260
	Lines        any    // default: []. The first lines: "Text" or { text, level, time }
	MaxLines     any    // default: 1000. The oldest lines go. 0: no limit
	AutoScroll   any    // default: 1. 1: follows the last line
	ShowTime     any    // default: 1
	ShowLevel    any    // default: 1
	WrapLines    any    // default: 1
	EmptyText    string // default: "No output yet."
	NewLinesText string // default: "{count} new". The button that goes back to the end
	LevelTexts   P      // default: { info: "INFO", success: "OK", warn: "WARN", error: "ERRO...
	AriaLabel    string // default: "Output"
	StyleName    string // default: "light". "light", "dark" or a name added to LogView.styles
	Style        P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

LogViewProps are the params of a LogView, by their names in the kit (comp/log-view.js). A param that is not given keeps the default written next to it.

type LoginPageProps

type LoginPageProps struct {
	PanelWidth                   any    // default: 420
	PrimaryColor                 string // default: "#2C5A38"
	TabBackgroundColorBottom     any    `ui:"tab_backgroundColorBottom"` // default: "#242424". "#242424", "whitesmoke"
	TabBackgroundColorTop        any    `ui:"tab_backgroundColorTop"`    // default: "#242424"
	TabBorderColor               any    `ui:"tab_borderColor"`           // default: White(0.1). White(0.1), Black(0),
	TabBorder                    any    `ui:"tab_border"`                // default: 1. 1, 0
	TabTextColor                 any    `ui:"tab_textColor"`             // default: White(0.75). White(0.75), "#373836",
	TabSelectedColor             string `ui:"tab_selectedColor"`         // default: "#000000". "#000000", "white",
	TabWidth                     any    // default: "auto". the LOGIN / SIGN UP bar: "auto" (as wide as its tabs) or a width the tabs share (Ex: the panelWidth)
	TabStyle                     P      // default: {}. more keys of the style of its Tabs (pillBar, tab, pillActive, pillIndicator...), over the tab_ look
	InputStyleName               string // default: "". "": the fields take the input_ colors below. A TextField package ("ozden", "ozdenDark"...): the fields take its look.
	ButtonStyleName              string // default: "". "": LOGIN / SIGN UP are flat buttons in primaryColor. A SmartButton template ("ozden3"...): SmartButtons
	ButtonTone                   string // default: "". The tone of those SmartButtons (Ex: "blue"; "": the gray of the template)
	InputBackgroundColor         string `ui:"input_backgroundColor"`         // default: "#141414"
	InputLineColor               string `ui:"input_lineColor"`               // default: "transparent"
	InputSelectedBackgroundColor string `ui:"input_selectedBackgroundColor"` // default: "#202020"
	InputTextColor               any    `ui:"input_textColor"`               // default: White(0.85). Black(0.85), White(0.85)
	InputBorder                  any    `ui:"input_border"`                  // default: 1. 1, 0
	InputBorderColor             any    `ui:"input_borderColor"`             // default: White(0.1). White(0.1), Black(0.1)
	OrTextColor                  any    // default: White(0.75). White(0.75), Black(0.75)
	OrLineColor                  any    // default: White(0.1). White(0.1), Black(0.1)
	PanelName                    string // default: "MY PANEL v25.08.11"
	AllowHtml                    any    // default: 0. 1: panelName, the alerts and the texts of the buttons are HTML (only for your own texts)
	OnLoginClick                 any    // default: a function
	OnSignupClick                any    // default: a function
	ShowPasswordIconInvert       any    // default: 1
	ShowPasswordIconFile         string // default: "". "": the eye of PasswordField
	HidePasswordIconFile         string // default: "". "": the crossed eye of PasswordField
	WaitingCoverColor            string // default: "rgba(0, 0, 0, 0.6)". The cover of box.waiting (LoadingScreen)
	WaitingClock                 string // default: "ozden". The clock of box.waiting: "ozden" (a white face) or "ozdenDark" (LoadingScreen.clocks)
	SignupPasswordParams         P      // default: {...}
	Style                        P      // default: {...}

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	Width     any // 120, "100%", "auto"
	Height    any
	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

LoginPageProps are the params of a LoginPage, by their names in the kit (comp/login-page.js). A param that is not given keeps the default written next to it.

type MarkdownViewProps

type MarkdownViewProps struct {
	Key            any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left           any    // default: 0
	Top            any    // default: 0
	Width          any    // default: "100%"
	Height         any    // default: "100%". A number or "100%": the text scrolls inside it. "auto": it grows with its text.
	MarkdownText   string // default: "". The text. setMarkdownText(), appendText()
	EmptyText      string // default: "". Shown when there is no text
	AutoScroll     any    // default: 1. 1: with appendText() the view follows the end, until the reader scrolls up
	RemotePictures any    // default: 0. 1: a picture with an http address is drawn, not a link (See the note at the top)
	UseScrollBar   any    // default: 1. basic/scroll-bar.js (when it is loaded), with a height that is not "auto". 0: the scrollbar of the browser
	AriaLabel      string // default: "Document"
	CopyText       string // default: "Copy". The button of a code
	CopiedText     string // default: "Copied"
	OnLinkClick    any    // default: a function. function (self, address) {}: a link comes to you, not to the browser. null: it opens in a new tab.
	StyleName      string // default: "light". "light", "dark" or a name added to MarkdownView.styles
	Style          P      // default: {...}. Light style package (default)

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

MarkdownViewProps are the params of a MarkdownView, by their names in the kit (comp/markdown-view.js). A param that is not given keeps the default written next to it.

type MenuBarProps struct {
	Key         any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left        any    // default: 0
	Top         any    // default: 0
	Width       any    // default: "100%"
	Height      any    // default: 34
	Menus       any    // default: []. [{ text, key, enabled, items, onClick }]
	Enabled     any    // default: 1
	AriaLabel   string // default: "Menu bar"
	OnClick     any    // default: a function. An item (with a click, the keyboard or its shortcut)
	OnMenuOpen  any    // default: a function
	OnMenuClose any    // default: a function
	StyleName   string // default: "light". "light", "dark", "minimal", "minimalDark" or a name added to MenuBar.styles
	Style       P      // default: {...}. Light style package (default)

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

MenuBarProps are the params of a MenuBar, by their names in the kit (comp/menu-bar.js). A param that is not given keeps the default written next to it.

type MiniGraphBoxProps

type MiniGraphBoxProps struct {
	Key         any    // default: "0"
	Width       any    // default: 200
	Height      any    // default: 80
	TitleText   string // default: "Sold Items"
	ValueText   string // default: "1.3K"
	AllowHtml   any    // default: 0. 1: titleText and valueText are HTML (only for your own texts)
	IconFile    string // default: "". "": No icon
	BarColor    string // default: "tomato"
	Values      any    // default: []. [10, 20, { value: 15, color: "orange" }]
	MaxValue    any    // default: 0. 0: Auto (the biggest visible value is the top of the graph)
	Animated    any    // default: 1. 1: Bar heights change with a short motion.
	ShowTooltip any    // default: 1. 1: the value of the bar under the mouse, in a small box (at once)
	ValueFormat any    // default: a function. The text of the tooltip
	OnClick     any    // default: a function
	Style       P      // default: {...}

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

MiniGraphBoxProps are the params of a MiniGraphBox, by their names in the kit (comp/mini-graph-box.js). A param that is not given keeps the default written next to it.

type NoticeProps

type NoticeProps struct {
	Left            any    // default: 0
	Top             any    // default: 0
	Width           any    // default: "100%"
	Height          any    // default: "100%"
	MessageText     string // default: "No message"
	DescriptionText string // default: "". "": no second line
	Type            string // default: "info". "info", "warning", "error", "note", "success"
	IconFile        string // default: "". "": no icon
	AllowHtml       any    // default: 0. 1: the texts are HTML (only for your own texts)
	DisplayTime     any    // default: 2000. ms; 0: it stays until a click or Escape
	CloseOnClick    any    // default: 1
	OnClose         any    // default: a function
	StyleName       string // default: "classic". "classic" or a name added to Notice.styles
	Style           P      // default: {...}. Classic style package

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

NoticeProps are the params of a Notice, by their names in the kit (comp/notice.js). A param that is not given keeps the default written next to it.

type NumberFieldProps

type NumberFieldProps struct {
	Required               any    // default: 0 (the kit alone: 0)
	Type                   string // default: "number"
	TitleText              string // default: "" (the kit alone: "NUMERIC")
	MaxLength              any    // default: 35
	Placeholder            string // default: "" (the kit alone: "(auto)")
	AllowNegative          any    // default: 0
	AllowDecimal           any    // default: 1
	DecimalSeparator       string // default: ".". ","
	MaxDecimalDigits       any    // default: 2
	Key                    any    // default: "0"
	StyleName              string // default: "light" (the kit alone: "light"). "light", "dark", "modern" ("classic": its old name), "modernDark", "ozden", "ozdenDark", "minimal", "minimalDark" or a name added to TextField.styles
	Width                  any    // default: 350
	Height                 any    // default: "auto"
	LeftPadding            any    // default: 20
	RightPadding           any    // default: 60
	TitleFontSize          any    // default: 16
	InputFontSize          any    // default: 20
	InputHeight            any    // default: 40. px: the row of the text
	FieldPadding           any    // default: 14. px: over and under the title and the text (titlePosition "inside")
	DescriptionFontSize    any    // default: 14
	TitlePosition          string // default: "inside". "inside": the title in the field, over the text. "above": the title over the field (the field is only the row of the text). (Only at create time)
	TitleGap               any    // default: 4. px between the title and the field (titlePosition "above")
	Value                  any    // default: ""
	ShowDescription        any    // default: 0
	DescriptionText        string // default: ""
	AllowHtml              any    // default: 0. 1: titleText, descriptionText and unitText are HTML (only for your own texts)
	BackgroundColor        string // default: "#F6F6F6"
	FocusBackgroundColor   string // default: "#F3F4E0"
	HoverBackgroundColor   string // default: "". the field under the mouse (not while it is selected). "": no change
	LineColor              string // default: "#373836"
	FocusLineColor         string // default: "#65A293"
	BackBorderColor        any    // default: Black(0)
	FocusBackBorderColor   any    // default: Black(0)
	HoverBackBorderColor   string // default: "". the edge under the mouse (not while it is selected). "": no change
	BackBorderTopRound     any    // default: 2
	BackBorderBottomRound  any    // default: 0
	TitleTextColor         string // default: "#555555"
	TitleBold              any    // default: 0. 1: the title in bold (opensans-bold)
	TitleLetterSpacing     string // default: "". "": normal. Ex: "0.06em"
	InputTextColor         string // default: "#373836"
	InputColorScheme       string // default: "". "": the page's. "dark": the autofill colors of the browser stay dark (on a dark field)
	PlaceholderColor       string // default: "". "": the color of the browser
	DescriptionTextColor   string // default: "#999999"
	WarningBallBorderColor string // default: "#373836"
	RequiredText           string // default: "Required"
	RequiredColor          string // default: "white"
	WarningText            string // default: "Invalid value format"
	WarningColor           string // default: "#E5885E"
	AnimatedWarningBall    any    // default: 1
	WarningBallType        string // default: "color". "color": colored ball, "icon": icon image
	WarningBallSize        any    // default: 16. px: the colored ball (warningBallType "color")
	WarningBallBorder      any    // default: 2. px: the edge of the colored ball (warningBallBorderColor)
	WarningBorderColor     string // default: "". the edge of the field while it shows a warning (not while typing). "": no change
	WarningIconSize        any    // default: 20
	RequiredIconFile       string // default: "". image path or data URI. "": built-in icon
	WarningIconFile        string // default: "". image path or data URI. "": built-in icon
	RequiredIconColor      string // default: "#373836". built-in required icon color (built-in warning icon uses warningColor)
	TooltipStyle           P      // default: {...}
	SelectStyle            P      // default: {...}
	ShowLeftBox            any    // default: 0
	ShowRightBox           any    // default: 0
	ShowUnit               any    // default: 0
	CreateInput            any    // default: 1
	UnitText               string // default: ""
	UnitStyle              P      // default: {...}
	OnFocus                any    // default: a function
	OnBlur                 any    // default: a function
	OnChange               any    // default: a function. the user changed the text (not at create time, not by setValue())

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Style    P // keys of its look, over its package: ozdenui.P{"box": ozdenui.P{"round": 12}}
	Visible  any
	Opacity  any
	OnEnter  any  // the Enter key: func() or func(field *ozdenui.Object)
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

NumberFieldProps are the params of a NumberField, by their names in the kit (comp/number-field.js). A param that is not given keeps the default written next to it.

type NumericKeyboardProps

type NumericKeyboardProps struct {
	Width     any    // default: "auto". As wide as the keys
	Height    any    // default: "auto"
	KeyLayout string // default: "wide". "wide": two rows; "phone": a 3 x 4 grid with an enter key
	TitleText string // default: "PIN". "": no title
	Value     any    // default: ""
	MaxLength any    // default: 4
	Mask      any    // default: 0. 1: a • for each digit (a PIN)
	ShowValue any    // default: 1. 0: only the keys (the value is shown somewhere else)
	OnChange  any    // default: a function
	OnEnter   any    // default: a function
	StyleName string // default: "light". "light" ("classic": its old name), "dark" or a name added to NumericKeyboard.styles
	Style     P      // default: {...}. Classic style package

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

NumericKeyboardProps are the params of a NumericKeyboard, by their names in the kit (comp/numeric-keyboard.js). A param that is not given keeps the default written next to it.

type Object

type Object struct {
	// contains filtered or unexported fields
}

Object is every object of the window: a basic object, a group or a component.

func Accordion

func Accordion(props AccordionProps) *Object

Accordion makes the Accordion of the kit (comp/accordion.js).

StyleName: dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("openKeys").

Objects go into it with accordion.Section(key, func() { ... }).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addSection, close, closeAll, endSection, focus, getContent, getOpenKeys, getSection, isOpen, open, openAll, removeSection, setAnimated, setEnabled, setSectionDescription, setSectionEnabled, setSectionText, setSections, setTheme, startSection, toggle.

func ActionButton

func ActionButton(props ActionButtonProps) *Object

ActionButton makes the ActionButton of the kit (comp/action-button.js).

StyleName: classic, ozden.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): closeMenu, openMenu, press, setAnimated, setButtonColor, setItems, toggleMenu.

func ActionTabBar

func ActionTabBar(props ActionTabBarProps) *Object

ActionTabBar makes the ActionTabBar of the kit (comp/action-tab-bar.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): getIndex, setValue.

func AppBar

func AppBar(props AppBarProps) *Object

AppBar makes the AppBar of the kit (comp/app-bar.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): setBackVisible, setLine, setMenuVisible, setTitleAlign, setTitleText.

func Badge

func Badge(props BadgeProps) *Object

Badge makes the Badge of the kit (comp/badge.js).

StyleName: dark, light, ozden.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): getState, getValue, hide, isVisible, setState, setValue, show.

func BottomBar

func BottomBar(props BottomBarProps) *Object

BottomBar makes the BottomBar of the kit (comp/bottom-bar.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): selectByIndex, selectNone, setBadge, setLabelMode.

func Box

func Box(props Props, content ...func()) *Object

Box is a rectangle that holds other objects: the objects made in content go into it, each with a place of its own.

ozdenui.Box(ozdenui.Props{Left: 20, Top: 20, Width: 200, Height: 120, Color: "white", Round: 8}, func() {
    ozdenui.Label(ozdenui.Props{Left: 12, Top: 12, Text: "In the box"})
})
func Breadcrumbs(props BreadcrumbsProps) *Object

Breadcrumbs makes the Breadcrumbs of the kit (comp/breadcrumbs.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addItem, back, clickItem, collapse, expand, getCurrentItem, getItems, goTo, setEnabled, setItems, setMaxItems, setSeparator.

func Button

func Button(props Props) *Object

Button is the plain button of basic.js. SmartButton is the modern one.

func Canvas

func Canvas(props CanvasProps) *Object

Canvas makes the Canvas of the kit (comp/canvas.js).

StyleName: dark, light.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addCircle, addEllipse, addImage, addLine, addPolygon, addPolyline, addRect, addShape, addText, bringToFront, clear, getImage, getShape, getShapes, moveShape, removeShape, setDrawing, setPen, setShapes, setTheme.

func ChatView

func ChatView(props ChatViewProps) *Object

ChatView makes the ChatView of the kit (comp/chat-view.js).

StyleName: dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("busy").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addMessage, appendText, clear, focus, getInputText, getMessageText, getMessages, removeMessage, scrollToEnd, scrollToTop, send, setBusy, setEmptyText, setInputText, setMessageText, setMessages, setPlaceholder, setShowInput, setTheme, stop.

func CheckBox

func CheckBox(props CheckBoxProps) *Object

CheckBox makes the CheckBox of the kit (comp/check-box.js).

StyleName: classic, dark, light, minimal, minimalDark, modern.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("checked").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): setAnimated, setChecked, setEnabled, setLabelText, toggle.

func CodeEditor

func CodeEditor(props CodeEditorProps) *Object

CodeEditor makes the CodeEditor of the kit (comp/code-editor.js).

StyleName: dark, light.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("cursorColumn"), obj.Get("cursorLine").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): focusEditor, getSelectedText, getValue, goToLine, insertText, setLanguage, setReadOnly, setShowLineNumbers, setTabSize, setTheme, setValue.

func ColorPicker

func ColorPicker(props ColorPickerProps) *Object

ColorPicker makes the ColorPicker of the kit (comp/color-picker.js).

StyleName: classic, dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("value").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): close, getColor, isOpen, open, setColor, setColors, setEnabled, toggle.

func Component

func Component(typeName string, params P, content ...func()) *Object

Component makes a component of the kit by its name, with its params by their names in the kit. The functions of kit_gen.go (ozdenui.CheckBox(ozdenui.CheckBoxProps{...})) do the same with a type that knows the params.

ozdenui.Component("Gauge", ozdenui.P{"value": 72, "width": 200})

func ContextMenu

func ContextMenu(props ContextMenuProps) *Object

ContextMenu makes the ContextMenu of the kit (comp/context-menu.js).

StyleName: classic, dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): activateFirst, attachTo, clickItem, close, closeSubmenu, detach, getItemByKey, getItems, hasActive, isOpen, openAt, openBelow, openBeside, openWithEvent, remove, setEnabled, setItemChecked, setItemEnabled, setItems.

func CurrencyField

func CurrencyField(props CurrencyFieldProps) *Object

CurrencyField makes the CurrencyField of the kit (comp/currency-field.js).

A dark window gives it its dark look.

Read without a question to the page: obj.Get("text").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): blurFunc, checkIfInputIsRequiredAndEmpty, checkInputValue, focusFunc, getValue, getValueAsNumber, inputFunc, isValid, setBackgroundColor, setDescriptionText, setFocusBackgroundColor, setFocusLineColor, setLineColor, setMaxLength, setPlaceholder, setRequired, setRequiredIcon, setRequiredText, setTitleText, setUnitText, setValue, setWarningColor, setWarningIcon, setWarningText, showWarningIfNotValid.

func Current

func Current() *Object

Current is the box that takes the objects made now: inside the function of a group, the group itself (its variable is not set yet there).

ozdenui.GridGroup(ozdenui.GridGroupProps{Columns: 4}, func() {
    wide := ozdenui.SmartButton(ozdenui.SmartButtonProps{LabelText: "0"})
    ozdenui.Current().Place(wide, ozdenui.P{"columnSpan": 2})
})

func DataTable

func DataTable(props DataTableProps) *Object

DataTable makes the DataTable of the kit (comp/data-table.js).

When to use it: the better looking table (style packages, sorting, search, selection, your own cells), but the data it can hold has a limit: every row is a basic.js object (about 9 DOM nodes), all made at once.

StyleName: classic, dark, light, minimal, minimalDark, plain.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("selectedRow").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addRow, clearRows, clearSelection, clearSort, getBiggestId, getRow, getRows, getSelectedData, getSelectedId, removeRow, search, select, setRows, setTitleText, sortBy.

func DatePicker

func DatePicker(props DatePickerProps) *Object

DatePicker makes the DatePicker of the kit (comp/date-picker.js).

StyleName: classic, dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("value").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): close, getDate, isOpen, open, setDate, setEnabled, setMaxDate, setMinDate, toggle.

func Dialog

func Dialog(props DialogProps) *Object

Dialog makes the Dialog of the kit (comp/dialog.js).

StyleName: minimal, minimalDark, ozden, ozdenDark.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): close, getButton, getValues, isBusy, isOpen, open, remove, setBusy, setMessageText, setStatus, setTitleText.

func EmailField

func EmailField(props EmailFieldProps) *Object

EmailField makes the EmailField of the kit (comp/email-field.js).

A dark window gives it its dark look.

Read without a question to the page: obj.Get("text").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): blurFunc, checkIfInputIsRequiredAndEmpty, checkInputValue, focusFunc, getValue, inputFunc, isValid, setBackgroundColor, setDescriptionText, setFocusBackgroundColor, setFocusLineColor, setLineColor, setMaxLength, setPlaceholder, setRequired, setRequiredIcon, setRequiredText, setTitleText, setUnitText, setValue, setWarningColor, setWarningIcon, setWarningText, showWarningIfNotValid.

func FilePicker

func FilePicker(props FilePickerProps) *Object

FilePicker makes the FilePicker of the kit (comp/file-picker.js).

StyleName: classic, dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("files").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addFiles, clear, getFileDetails, getFiles, open, remove, removeFile, setAnimated, setDescriptionText, setEnabled, setIcon, setIconSvg, setTitleText.

func Filters

func Filters(props FiltersProps) *Object

Filters makes the Filters of the kit (comp/filters.js).

StyleName: light.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): clearAll, closePanel, getSelected, getSelectedCount, openPanel, search, setAnimated, setButtonText, setPanelOpened, setSectionOpened, setSections, setSelected, togglePanel.

func Form

func Form(props FormProps) *Object

Form makes the Form of the kit (comp/form.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addDoubleInput, addInput, addTitle, remove, setPassiveButtonHintText, showMessage.

func FullScreenSelect

func FullScreenSelect(props FullScreenSelectProps) *Object

FullScreenSelect makes the FullScreenSelect of the kit (comp/full-screen-select.js).

StyleName: classic, dark, light.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): close, getSelectedIndex, getSelectedItem, open, remove, setItems, setSelectedIndex, setSelectedKey.

func Gauge

func Gauge(props GaugeProps) *Object

Gauge makes the Gauge of the kit (comp/gauge.js).

StyleName: classic, dark, light, modern.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): setBarColor, setMarkerValue, setRange, setSubText, setTitleText, setValue, setValueSuffix, setValueText.

func GraphBox

func GraphBox(props GraphBoxProps) *Object

GraphBox makes the GraphBox of the kit (comp/graph-box.js).

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addDataset, addPoint, addValue, download, getCanvas, getImage, getTableData, removeDataset, setAnimated, setAxisTexts, setCenterText, setCurve, setData, setDatasetVisible, setDatasets, setFormatValue, setFormatX, setHorizontal, setLabels, setLegend, setMaxSlices, setShowValues, setSliceVisible, setSoftLimits, setStacked, setStyle, setSubtitleText, setTableView, setTargetLines, setTheme, setTitleText, setType, setValueLimits, setValueStep, setValues, setXLimits, whenReady.

func GridGroup

func GridGroup(props GridGroupProps, content ...func()) *Object

GridGroup makes the GridGroup of the kit (comp/grid-group.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): place, setAlign, setColumns, setGap, setRows.

func HGroup

func HGroup(props Props, content ...func()) *Object

HGroup holds objects side by side (flexbox). See VGroup.

func HoldToConfirmButton

func HoldToConfirmButton(props HoldToConfirmButtonProps) *Object

HoldToConfirmButton makes the HoldToConfirmButton of the kit (comp/hold-to-confirm-button.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): cancelHold, startHold.

func Icon

func Icon(props Props) *Object

Icon is a picture: ozdenui.Icon(ozdenui.Props{Width: 48, Height: 48, Picture: "photo.png"}). ImageView is the one with a zoom.

func ImageView

func ImageView(props ImageViewProps) *Object

ImageView makes the ImageView of the kit (comp/image-view.js).

StyleName: dark, light.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("naturalHeight"), obj.Get("naturalWidth"), obj.Get("zoomLevel").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): clearImage, setImage, setShowToolbar, setTheme, setZoomLevel, zoomIn, zoomOut, zoomToActualSize, zoomToFit.

func Input

func Input(props Props) *Object

Input is a plain text box: obj.Text() is always the text on the page. TextField is the modern one.

func ItemList

func ItemList(props ItemListProps) *Object

ItemList makes the ItemList of the kit (comp/item-list.js).

StyleName: classic, dark, gallery, galleryDark, light, minimal, minimalDark, ozden, ozdenDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("selected"), obj.Get("selectedKeys").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addItem, clearSelection, focusItem, forEach, getItem, getItems, getRow, getSelected, getSelectedKeys, removeItem, scrollToItem, search, select, setActiveKey, setAnimated, setEnabled, setItems, setLayout, setSelected, setSelection, unselect.

func JsonEditor

func JsonEditor(props JsonEditorProps) *Object

JsonEditor makes the JsonEditor of the kit (comp/json-editor.js).

StyleName: dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): focus, getJsonText, getValue, getView, hasChanges, redo, setJsonText, setTitleText, setValue, setView, undo.

func JsonView

func JsonView(props JsonViewProps) *Object

JsonView makes the JsonView of the kit (comp/json-view.js).

StyleName: dark, light.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("selectedPath"), obj.Get("selectedPathText").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): collapseAll, expandAll, getSelectedPath, getSelectedPathText, getSelectedValue, getValue, remove, selectPath, setJsonText, setTheme, setValue.

func Label

func Label(props Props) *Object

Label is a text. Text is shown as it is written; Html takes HTML.

func LabelEditor

func LabelEditor(props LabelEditorProps) *Object

LabelEditor makes the LabelEditor of the kit (comp/label-editor.js).

StyleName: classic, dark, light.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addLabel, duplicateLabel, getLabels, getSavedStyles, getSelectedIndex, moveLabel, removeLabel, removeStyle, saveStyle, selectLabel, setLabels, setSavedStyles.

func LeftMenu

func LeftMenu(props LeftMenuProps) *Object

LeftMenu makes the LeftMenu of the kit (comp/left-menu.js).

StyleName: dark, light.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addItemToBottom, addItemToTop, clearSelection, collapse, expand, getSelectedItem, isTapMode, remove, removeItem, setOpenOnClick, setSelectedItem, toggle.

func LineProgressBar

func LineProgressBar(props LineProgressBarProps) *Object

LineProgressBar makes the LineProgressBar of the kit (comp/line-progress-bar.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): setAnimated, setPrimaryColor, setProgress, setSecondaryColor.

func LoadingScreen

func LoadingScreen(props LoadingScreenProps) *Object

LoadingScreen makes the LoadingScreen of the kit (comp/loading-screen.js).

StyleName: dark, light, minimal, minimalDark, ozden, ozdenDark.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): close, open, setMessageText, setProgress, setTitleText.

func LogView

func LogView(props LogViewProps) *Object

LogView makes the LogView of the kit (comp/log-view.js).

StyleName: dark, light.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addLine, clearLines, debug, error, getText, info, scrollToEnd, setAutoScroll, setLevels, setMaxLines, setShowLevel, setShowTime, setTheme, setWrapLines, success, warn.

func LoginPage

func LoginPage(props LoginPageProps) *Object

LoginPage makes the LoginPage of the kit (comp/login-page.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): remove, setActiveTab, showAlert.

func MarkdownView

func MarkdownView(props MarkdownViewProps) *Object

MarkdownView makes the MarkdownView of the kit (comp/markdown-view.js).

StyleName: dark, light.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): appendText, clear, getHeadings, getMarkdownText, scrollToEnd, scrollToHeading, scrollToTop, setAutoScroll, setEmptyText, setMarkdownText, setTheme.

func MenuBar(props MenuBarProps) *Object

MenuBar makes the MenuBar of the kit (comp/menu-bar.js).

StyleName: dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): closeMenu, remove, setEnabled, setItemChecked, setItemEnabled, setMenus, setTheme.

func MiniGraphBox

func MiniGraphBox(props MiniGraphBoxProps) *Object

MiniGraphBox makes the MiniGraphBox of the kit (comp/mini-graph-box.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addValue, clear, getLastValue, getValues, setBarColor, setIcon, setMaxValue, setTitleText, setValueText, setValues.

func Notice

func Notice(props NoticeProps) *Object

Notice makes the Notice of the kit (comp/notice.js).

StyleName: classic.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): close, remove.

func NumberField

func NumberField(props NumberFieldProps) *Object

NumberField makes the NumberField of the kit (comp/number-field.js).

A dark window gives it its dark look.

Read without a question to the page: obj.Get("text").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): blurFunc, checkIfInputIsRequiredAndEmpty, checkInputValue, focusFunc, getValue, inputFunc, isValid, setBackgroundColor, setDescriptionText, setFocusBackgroundColor, setFocusLineColor, setLineColor, setMaxLength, setPlaceholder, setRequired, setRequiredIcon, setRequiredText, setTitleText, setUnitText, setValue, setWarningColor, setWarningIcon, setWarningText, showWarningIfNotValid.

func NumericKeyboard

func NumericKeyboard(props NumericKeyboardProps) *Object

NumericKeyboard makes the NumericKeyboard of the kit (comp/numeric-keyboard.js).

StyleName: classic, dark, light.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): clear, getValue, setTitleText, setValue.

func PageControl

func PageControl(props PageControlProps) *Object

PageControl makes the PageControl of the kit (comp/page-control.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addPage, clear, endPage, focus, getCount, getIndex, getKeys, getPage, isFirst, isLast, next, open, openIndex, previous, removePage, setAutoPlay, setEnabled, setLoop, startPage.

func PageHeader(props PageHeaderProps) *Object

PageHeader makes the PageHeader of the kit (comp/page-header.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): setBackText, setBackVisible, setTitleText.

func PasswordField

func PasswordField(props PasswordFieldProps) *Object

PasswordField makes the PasswordField of the kit (comp/password-field.js).

A dark window gives it its dark look.

Read without a question to the page: obj.Get("text").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): blurFunc, checkIfInputIsRequiredAndEmpty, checkInputValue, focusFunc, getValue, inputFunc, isValid, setBackgroundColor, setDescriptionText, setFocusBackgroundColor, setFocusLineColor, setLineColor, setMaxLength, setPlaceholder, setRequired, setRequiredIcon, setRequiredText, setShowPassword, setTitleText, setUnitText, setValue, setWarningColor, setWarningIcon, setWarningText, showWarningIfNotValid.

func PeriodBar

func PeriodBar(props PeriodBarProps) *Object

PeriodBar makes the PeriodBar of the kit (comp/period-bar.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): focus, getSelectedDate, selectNext, selectPrevious, setValue, setVisible.

func PhoneField

func PhoneField(props PhoneFieldProps) *Object

PhoneField makes the PhoneField of the kit (comp/phone-field.js).

A dark window gives it its dark look.

Read without a question to the page: obj.Get("text").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): blurFunc, checkIfInputIsRequiredAndEmpty, checkInputValue, fillAutoPlaceholder, focusFunc, getValue, inputFunc, isValid, setBackgroundColor, setCountryCode, setDescriptionText, setFocusBackgroundColor, setFocusLineColor, setLineColor, setMaxLength, setPhoneMask, setPlaceholder, setRequired, setRequiredIcon, setRequiredText, setTitleText, setUnitText, setValue, setWarningColor, setWarningIcon, setWarningText, showWarningIfNotValid.

func ProgressBar

func ProgressBar(props ProgressBarProps) *Object

ProgressBar makes the ProgressBar of the kit (comp/progress-bar.js).

StyleName: classic, dark, light, minimal, minimalDark, modern, ozden, ozdenDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("value").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addValue, getPercent, reset, setDarkTrack, setIndeterminate, setLimits, setMaxValue, setSecondStripes, setSecondValue, setStatus, setStripes, setTitleText, setValue, setValues.

func PropertyPanel

func PropertyPanel(props PropertyPanelProps) *Object

PropertyPanel makes the PropertyPanel of the kit (comp/property-panel.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): close, closeColorPicker, getData, getItem, getValue, getValues, isColorPickerOpen, isPopupElement, listen, open, openColorPickerFor, remove, setActiveTab, setData, setEnabled, setItemVisible, setTitle, setValue, setValues, toggle.

func RadioButton

func RadioButton(props RadioButtonProps) *Object

RadioButton makes the RadioButton of the kit (comp/radio-button.js).

StyleName: classic, dark, light, minimal, minimalDark, modern.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("checked").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): remove, select, setChecked, setEnabled, setLabelText.

func RangeSlider

func RangeSlider(props RangeSliderProps) *Object

RangeSlider makes the RangeSlider of the kit (comp/range-slider.js).

StyleName: minimal, minimalDark, round, roundDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("high"), obj.Get("low").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): getValues, setEnabled, setMaxValue, setMinGap, setMinValue, setStep, setTheme, setValues.

func RichTextEditor

func RichTextEditor(props RichTextEditorProps) *Object

RichTextEditor makes the RichTextEditor of the kit (comp/rich-text-editor.js).

StyleName: classic, dark, light, modern.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): clear, focus, focusEnd, getHtmlText, getLength, getText, insertHtml, insertText, isEmpty, runTool, setEnabled, setHtmlText, setMaxLength, setPlaceholder, setReadOnly.

func ScrollArea

func ScrollArea(props ScrollAreaProps, content ...func()) *Object

ScrollArea makes the ScrollArea of the kit (comp/scroll-area.js).

StyleName: dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): getScrollTop, scrollToEnd, scrollToObject, scrollToTop, setAlign, setGap, setPadding, setScrollTop, setScrollX, setScrollY.

func ScrollingText

func ScrollingText(props ScrollingTextProps) *Object

ScrollingText makes the ScrollingText of the kit (comp/scrolling-text.js).

StyleName: classic.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): remove, setLabelText.

func SearchInput

func SearchInput(props SearchInputProps) *Object

SearchInput makes the SearchInput of the kit (comp/search-input.js).

StyleName: classic, dark, light, minimal, minimalDark, original, ozden, ozdenDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("text").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): focus, getSearchText, getValue, publicFunc, setAnimated, setClearIconRight, setPlaceholder, setValue.

func SearchResults

func SearchResults(props SearchResultsProps) *Object

SearchResults makes the SearchResults of the kit (comp/search-results.js).

StyleName: classic, dark, light, modern.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): attachTo, close, detach, getActiveIndex, getItems, moveActive, open, remove, selectActive, selectIndex, setActiveIndex, setItems, setMatchAnchorWidth.

func SelectBox

func SelectBox(props SelectBoxProps) *Object

SelectBox makes the SelectBox of the kit (comp/select-box.js).

StyleName: classic, dark, light, minimal, minimalDark, ozden, ozdenDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("value").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): clear, close, focus, getSelectedOptions, getValue, isOpen, open, setEnabled, setFullHeightList, setOptions, setPlaceholder, setValue, toggle.

func SettingsRow

func SettingsRow(props SettingsRowProps) *Object

SettingsRow makes the SettingsRow of the kit (comp/settings-row.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): setDescriptionText, setTitleColor, setTitleText.

func ShowHint

func ShowHint(target *Object, text string, milliseconds int, side ...string) *Object

ShowHint shows a small bubble with a text at an object, for a while (milliseconds; 0: until hint.Remove()). side: "top" (default), "bottom", "left", "right". A bubble that comes under the mouse by itself is a Tooltip.

func SidePanel

func SidePanel(props SidePanelProps) *Object

SidePanel makes the SidePanel of the kit (comp/side-panel.js).

StyleName: classic, dark, light, minimal, minimalDark, modern.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("isOpened").

Objects go into it with panel.Body(func() { ... }).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): close, endBody, getBody, open, remove, setPanelSize, setTitleText, startBody, toggle.

func Slider

func Slider(props SliderProps) *Object

Slider makes the Slider of the kit (comp/slider.js).

StyleName: minimal, minimalDark, round, roundDark, split, splitDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("value").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): getValue, setMaxValue, setMinValue, setStep, setThumbColor, setTrackBackgroundColor, setTrackColor, setValue, showValue, showValueClean.

func SliderField

func SliderField(props SliderFieldProps) *Object

SliderField makes the SliderField of the kit (comp/slider-field.js).

StyleName: classic, dark, light, minimal, minimalDark, modern, ozden.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("maxValue"), obj.Get("minValue"), obj.Get("value").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): decrease, focus, formatNumber, getValue, increase, setEnabled, setLabelText, setMaxValue, setMinValue, setPrecision, setRange, setShowTicks, setStep, setUnitText, setValue.

func SmartButton

func SmartButton(props SmartButtonProps) *Object

SmartButton makes the SmartButton of the kit (comp/smart-button.js).

StyleName: minimal, minimalDanger, minimalDangerDark, minimalDark, outlined, ozden, ozden2, ozden2Dark, ozden3, ozden3Dark, ozden4, ozden4Dark, ozdenDark, pill.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): cancelAsk, press, remove, setAnimated, setAsk, setEnabled, setIcon, setLabelText, setRipple, setStyle, setTone, setWaiting.

func SmartTable

func SmartTable(props SmartTableProps) *Object

SmartTable makes the SmartTable of the kit (comp/smart-table.js).

When to use it: to show very big data well, in both directions: very many rows (only the rows that are seen are made) and very many columns (it scrolls sideways).

StyleName: classic, dark, green, light, minimal, minimalDark.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): clearColumnHighlight, clearSelection, filterAndSortData, generateTestData, getSelectedIndex, getTotalWidth, getVerticalScrollWidth, remove, resetSortIcons, scrollPage, selectItem, selectNextSearchTitle, setCanSelect, setFitLineCount, setHeight, setItemDataList, setItemHeight, setItemLineCount, setLocale, setScrollToTop, setSearchTitleIndex, setShowCellTooltip, setShowSearchTitleSelect, setState, setTitleCellWidth, setTitleDataList, setVerticalScrollEnabled, setWheelScroll, setWidth, showLoading, stretchLastCell, syncScrollPosition.

func SortableList

func SortableList(props SortableListProps) *Object

SortableList makes the SortableList of the kit (comp/sortable-list.js).

StyleName: classic, dark, light, modern.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("order").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addItem, focusItem, getIndexByKey, getItems, getKeys, moveDown, moveItem, moveUp, remove, removeItem, setEnabled, setItems.

func SparkLineBox

func SparkLineBox(props SparkLineBoxProps) *Object

SparkLineBox makes the SparkLineBox of the kit (comp/spark-line-box.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addValue, clear, getLastValue, getValues, setIcon, setLineColor, setMaxPoints, setMaxValue, setMinValue, setTitleText, setTrendText, setValueText, setValues.

func Splitter

func Splitter(props SplitterProps) *Object

Splitter makes the Splitter of the kit (comp/splitter.js).

StyleName: dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("firstSizeNow").

Objects go into it with splitter.First(func() { ... }) and splitter.Second(func() { ... }).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): getFirstSize, setAreaVisible, setFirstSize, setTheme.

func StatusBar

func StatusBar(props StatusBarProps) *Object

StatusBar makes the StatusBar of the kit (comp/status-bar.js).

StyleName: dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): getItem, setBusy, setItemText, setItemVisible, setItems, setMessageText, setTheme.

func StepBar

func StepBar(props StepBarProps) *Object

StepBar makes the StepBar of the kit (comp/step-bar.js).

StyleName: dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("step").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): getStep, next, previous, setStep, setSteps, setTheme.

func Stepper

func Stepper(props StepperProps) *Object

Stepper makes the Stepper of the kit (comp/stepper.js).

StyleName: classic, dark, light, minimal, minimalDark, modern, ozden, ozdenDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("value").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): decrease, focus, formatNumber, getValue, increase, setEnabled, setMaxValue, setMinValue, setPrecision, setRange, setStep, setUnitText, setValue.

func Tabs

func Tabs(props TabsProps) *Object

Tabs makes the Tabs of the kit (comp/tabs.js).

StyleName: classic, dark, light, minimal, minimalDark, modern.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("previousValue"), obj.Get("value").

Objects go into it with tabs.Panel(key, func() { ... }).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addTab, endPanel, focus, getActiveTab, getIndex, getPanel, getTab, getTabs, getValue, removeTab, setBadge, setCount, setEnabled, setPanelContent, setTabEnabled, setTabs, setValue, startPanel.

func TagInput

func TagInput(props TagInputProps) *Object

TagInput makes the TagInput of the kit (comp/tag-input.js).

StyleName: classic, dark, light, minimal, minimalDark, modern.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("tags").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addTag, blur, clear, focus, getTags, removeTag, setEnabled, setMaxTags, setPlaceholder, setSuggestions, setTags.

func TextAreaField

func TextAreaField(props TextAreaFieldProps) *Object

TextAreaField makes the TextAreaField of the kit (comp/text-area-field.js).

A dark window gives it its dark look.

Read without a question to the page: obj.Get("text").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): blurFunc, checkIfInputIsRequiredAndEmpty, checkInputValue, focusFunc, getValue, inputFunc, isValid, setBackgroundColor, setDescriptionText, setFocusBackgroundColor, setFocusLineColor, setLineColor, setMaxLength, setPlaceholder, setRequired, setRequiredIcon, setRequiredText, setTitleText, setUnitText, setValue, setWarningColor, setWarningIcon, setWarningText, showWarningIfNotValid.

func TextField

func TextField(props TextFieldProps) *Object

TextField makes the TextField of the kit (comp/text-field.js).

StyleName: classic, dark, light, minimal, minimalDark, modern, modernDark, ozden, ozdenDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("text").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): blurFunc, checkIfInputIsRequiredAndEmpty, checkInputValue, focusFunc, getValue, inputFunc, isValid, setBackgroundColor, setDescriptionText, setFocusBackgroundColor, setFocusLineColor, setLineColor, setMaxLength, setPlaceholder, setRequired, setRequiredIcon, setRequiredText, setTitleText, setUnitText, setValue, setWarningColor, setWarningIcon, setWarningText, showWarningIfNotValid.

func TimeLine

func TimeLine(props TimeLineProps) *Object

TimeLine makes the TimeLine of the kit (comp/time-line.js).

StyleName: dark, light, minimal, minimalDark.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addItem, clear, getItems, setEnabled, setItems, setTheme.

func TimePicker

func TimePicker(props TimePickerProps) *Object

TimePicker makes the TimePicker of the kit (comp/time-picker.js).

StyleName: classic, dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("value").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): close, getTime, isOpen, open, setEnabled, setMaxTime, setMinTime, setMinuteStep, setTime, toggle.

func TinySelect

func TinySelect(props TinySelectProps) *Object

TinySelect makes the TinySelect of the kit (comp/tiny-select.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): getIndexByValue, getSelectedItem, remove, setColor, setEnabled, setList, setSelectedIndex, setTitleText.

func TinyTable

func TinyTable(props TinyTableProps) *Object

TinyTable makes the TinyTable of the kit (comp/tiny-table.js).

When to use it: a small table between the lines of a page, like a table in a text, for small data that needs nothing more: it has no sorting, no search and no selection.

StyleName: classic, dark, light.

A dark window gives it its dark look.

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): setRows.

func Toggle

func Toggle(props ToggleProps) *Object

Toggle makes the Toggle of the kit (comp/toggle.js).

StyleName: badge, classic, dark, float, label, light, minimal, minimalDark, outline, ozden, ozdenDark, round, slim, square, tick.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("value").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): setAnimated, setBackgroundSelectedColor, setMarks, setSecondState, setState, setValue, switch.

func ToolBar

func ToolBar(props ToolBarProps) *Object

ToolBar makes the ToolBar of the kit (comp/tool-bar.js).

StyleName: dark, light, minimal, minimalDark.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("checkedKeys").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): clickItem, closeMenu, getCheckedKeys, isItemChecked, remove, setEnabled, setItemChecked, setItemEnabled, setItemHint, setItemText, setItems, setTheme.

func Tooltip

func Tooltip(props TooltipProps) *Object

Tooltip makes the Tooltip of the kit (comp/tooltip.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): hideHint, remove, setHintText, setLbl_color.

func TreeView

func TreeView(props TreeViewProps) *Object

TreeView makes the TreeView of the kit (comp/tree-view.js).

StyleName: classic, dark, light, minimal, minimalDark, modern.

A dark window gives it its dark look.

Read without a question to the page: obj.Get("previousValue"), obj.Get("value").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): addNode, collapse, collapseAll, expand, expandAll, focus, getItems, getNode, getNodeOfEvent, getParent, getPath, getRowElem, getSelectedNode, removeNode, reveal, setChildren, setEmptyText, setEnabled, setItems, setValue, toggle.

func UrlField

func UrlField(props UrlFieldProps) *Object

UrlField makes the UrlField of the kit (comp/url-field.js).

A dark window gives it its dark look.

Read without a question to the page: obj.Get("text").

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): blurFunc, checkIfInputIsRequiredAndEmpty, checkInputValue, focusFunc, getValue, inputFunc, isValid, setBackgroundColor, setDescriptionText, setFocusBackgroundColor, setFocusLineColor, setLineColor, setMaxLength, setPlaceholder, setRequired, setRequiredIcon, setRequiredText, setTitleText, setUnitText, setValue, setWarningColor, setWarningIcon, setWarningText, showWarningIfNotValid.

func VGroup

func VGroup(props Props, content ...func()) *Object

VGroup holds objects one under the other (flexbox). A group is 100% x 100% by default; Hug: true wraps its objects, Fill: true takes the room the other objects of its group leave. Unlike in basic.js, a group does not cut what goes out of it (ClipContent: true cuts).

func WebView

func WebView(props WebViewProps) *Object

WebView makes the WebView of the kit (comp/web-view.js).

Methods of the kit, for obj.Call() and obj.Ask() (its file tells what each takes): clear, getDocument, getIframe, getWindow, hideError, isLoadingPage, load, loadHtml, postMessage, reload, remove, setAutoHeight, setInteractive, setScale, showError.

func (*Object) Add

func (obj *Object) Add(content func()) *Object

Add makes the objects of content inside this box or group, also later (in an event, a timer):

list.Add(func() {
    ozdenui.Label(ozdenui.Props{Text: "One more"})
})

Only a Box, a group and the areas of the components hold objects (a ScrollArea, the panel of a Tabs...).

func (*Object) AddFiles added in v0.1.1

func (obj *Object) AddFiles(paths ...string) *Object

AddFiles adds files of this computer to the list of a FilePicker, with their real paths. Its Accept, MaxSize and MaxFiles look at them too, and its OnChange runs. A file that can not be read is told and left out.

picker.AddFiles("/Users/ada/report.pdf", "notes.txt")

func (*Object) Ask

func (obj *Object) Ask(method string, args ...any) any

Ask calls a method of the object on the page and returns its result: table.Ask("getSelectedData"). It is a question to the page: keep it out of loops.

func (*Object) Body

func (obj *Object) Body(content ...func()) *Object

Body is the area of a SidePanel: its objects stand one under the other.

func (*Object) Bool

func (obj *Object) Bool(name string) bool

Bool is a flag: true for 1, true and a text that is not empty.

func (*Object) Call

func (obj *Object) Call(method string, args ...any) *Object

Call calls a method of the object on the page: box.Call("setMotion", "left 0.3s"). Its result is not waited for.

func (*Object) Check

func (obj *Object) Check() bool

Check shows the warning of a field (TextField and its kin) when its text is not right, and is true when it is right: a required field that is empty, an e-mail that is not one...

func (*Object) Checked

func (obj *Object) Checked() bool

Checked is true for a checked CheckBox or RadioButton, and for a Toggle that is on.

func (*Object) First

func (obj *Object) First(content ...func()) *Object

First is the first area of a Splitter (the left or the top one).

func (*Object) Focus

func (obj *Object) Focus() *Object

Focus puts the keyboard into the object (an Input, a field).

func (*Object) Get

func (obj *Object) Get(name string) any

Get is a value the object was given, or the state the page told (the checked of a CheckBox), by its name in the kit. A value that was never given is nil: obj.Measure("width") asks the page.

func (*Object) Height

func (obj *Object) Height() float64

Height: see Width.

func (*Object) Hide

func (obj *Object) Hide() *Object

Hide: see Show.

func (*Object) Int

func (obj *Object) Int(name string) int

Int is a value as a whole number.

func (*Object) JS

func (obj *Object) JS() string

JS is the object in JavaScript, for Evaluate(): ozdenui.Evaluate(label.JS() + ".elem.offsetWidth")

func (*Object) Measure

func (obj *Object) Measure(name string) any

Measure is a value as basic.js reads it on the page now (a size of "auto", the scrollTop of a box...). It is a question to the page: keep it out of loops.

func (*Object) Num

func (obj *Object) Num(name string) float64

Num is a value as a number (0 when it was not given): slider.Num("value").

func (*Object) On

func (obj *Object) On(event string, handler any) (remove func())

On listens to an event of the object: handler is func(), func(obj *Object) or func(obj *Object, event Event). It returns a function that removes the handler. The page listens to its window: page.On("keydown", fn), page.On("resize", fn).

func (*Object) Panel

func (obj *Object) Panel(key string, content ...func()) *Object

Panel is the area of a tab of a Tabs, by the key of the tab; the objects made in content go into it.

tabs.Panel("general", func() { ozdenui.Label(ozdenui.Props{Text: "General"}) })

func (*Object) Part

func (obj *Object) Part(path ...any) *Object

Part is a box inside a component, to put objects into or to call: field.Part("input").Call("select"). A step of the path is the name of a property, a place in a list (0) or a call of a method: ozdenui.P{"call": "getPanel", "args": []any{"details"}}. The same path gives the same object.

func (*Object) Paths added in v0.1.1

func (obj *Object) Paths() []string

Paths are the files of a FilePicker that have a path on this computer: the ones chosen in the file dialog or given by AddFiles. A file dropped on the window has only its name (picker.Get("files") lists every file).

func (*Object) Place

func (obj *Object) Place(item *Object, where P) *Object

Place gives an object a cell of its own in a GridGroup (from 0), or a span:

grid.Place(wide, ozdenui.P{"columnSpan": 2})      // also "column", "row", "rowSpan", "align"

Inside the function of the grid, the grid itself is ozdenui.Current().

func (*Object) Remove

func (obj *Object) Remove()

Remove removes the object and every object inside it, for good. To hide it for a while: obj.Hide().

func (*Object) Second

func (obj *Object) Second(content ...func()) *Object

Second is the second area of a Splitter.

func (*Object) Section

func (obj *Object) Section(key string, content ...func()) *Object

Section is the content of a section of an Accordion, by its key.

func (*Object) Set

func (obj *Object) Set(namesAndValues ...any) *Object

Set changes values by their names in the kit: label.Set("text", "Hi", "fontSize", 20). A name is written as basic.js writes it (camelCase). On a component, a param it has a method for (setUnitText) is changed with that method: the component draws it again, and its callback is not called.

func (*Object) SetText

func (obj *Object) SetText(text string) *Object

SetText changes the text: label.SetText("Saved").

func (*Object) SetValue

func (obj *Object) SetValue(value any) *Object

SetValue changes the value of a component; its OnChange is not called (only the user's change calls it).

func (*Object) Show

func (obj *Object) Show() *Object

Show and Hide change the visible value: a hidden object keeps its place in the program, not on the page.

func (*Object) Str

func (obj *Object) Str(name string) string

Str is a value as a text ("" when it was not given): field.Str("titleText").

func (*Object) String

func (obj *Object) String() string

func (*Object) Text

func (obj *Object) Text() string

Text is the text of the object: of a Label, of an Input or a field as it is on the page now, of a button.

func (*Object) TypeName

func (obj *Object) TypeName() string

TypeName is the name of the object in the kit: "Label", "SmartButton".

func (*Object) Value

func (obj *Object) Value() any

Value is the value of a component: of a SelectBox, a Slider, a Toggle, a DatePicker... (nil: none).

func (*Object) Width

func (obj *Object) Width() float64

Width and Height of the page are current (the page tells them at every resize); of another object they are the values it was given, as numbers (a size of "auto" or "100%": Measure("width")).

func (*Object) Writer

func (obj *Object) Writer(level string) io.Writer

Writer writes lines into a LogView, from any goroutine: every Write is a line (or more) of the level "info", "warn", "error", "debug" or "success".

log.SetOutput(logView.Writer("info"))
fmt.Fprintln(logView.Writer("error"), "the file is missing")

type P

type P = map[string]any

P is a short name for a map of values: a style, an item of a list, a row of a table.

ozdenui.P{"key": "tr", "text": "Türkiye"}

type PageControlProps

type PageControlProps struct {
	Key            any    // default: "0"
	Width          any    // default: 600
	Height         any    // default: 400
	Pages          any    // default: []. Keys of the pages to create at start. Ex: ["welcome", "details"]
	Value          any    // default: null. Key of the open page. null: the first page
	Transition     string // default: "slide". "slide", "slide-vertical", "fade", "none" (Only at create time)
	Motion         any    // default: 0.3. Seconds. 0: No animation
	Easing         string // default: "cubic-bezier(0.2, 0, 0, 1)"
	Loop           any    // default: 0. 1: next() after the last page opens the first page.
	Swipe          any    // default: 1. 1: Drag with a finger or the mouse to change the page. (slide transitions)
	SwipeThreshold any    // default: 0.2. Part of the box size (0.2: 20%) to change the page. A fast flick also changes it.
	Keyboard       any    // default: 1. 1: Arrow keys (when the box has the focus), Home / End
	Dots           any    // default: 0. 1: Page dots at the bottom
	Arrows         any    // default: 0. 1: Previous / next buttons at the sides
	AutoPlay       any    // default: 0. Seconds. 0: Off. Ex: 4 -> next page every 4 seconds (loop is used)
	PageScroll     any    // default: 0. 1: Every page scrolls its own content (scrollY)
	Enabled        any    // default: 1
	AriaLabel      string // default: "Pages"
	OnBeforeChange any    // default: a function. Return false to stop the change.
	OnChange       any    // default: a function. self.value, self.previousValue
	OnClose        any    // default: a function. The old page is out of the view (after the motion)
	Style          P      // default: {...}

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

PageControlProps are the params of a PageControl, by their names in the kit (comp/page-control.js). A param that is not given keeps the default written next to it.

type PageHeaderProps

type PageHeaderProps struct {
	Key          any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left         any    // default: 0. The header stands at the top of its container (a page)
	Top          any    // default: 0
	Width        any    // default: "100%"
	Height       any    // default: 105
	Color        string // default: "white". The background of the header
	TitleText    string // default: ""
	BackText     string // default: "Back". The text of the back link (Ex: the name of the page it goes back to)
	ShowBack     any    // default: 1. 1: the back link over the title (setBackVisible)
	BackColor    string // default: "#689BD2". The drawn chevron and the text of the back link
	BackIconFile string // default: "". "": a chevron drawn in SVG in backColor
	OnBack       any    // default: a function. The back link is clicked (or pressed with Enter / Space)
	Style        P      // default: {...}

	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

PageHeaderProps are the params of a PageHeader, by their names in the kit (comp/page-header.js). A param that is not given keeps the default written next to it.

type PasswordFieldProps

type PasswordFieldProps struct {
	Required                      any    // default: 0 (the kit alone: 1)
	RequiredText                  string // default: "Password must be entered"
	Type                          string // default: "password"
	TitleText                     string // default: "" (the kit alone: "PASSWORD")
	Placeholder                   string // default: "Enter your password"
	WarningText                   string // default: ""
	WarningColor                  string // default: "#E5885E"
	MaxLength                     any    // default: 1000 (the kit alone: 25)
	ShowPassword                  any    // default: 0
	ShowShowPasswordButton        any    // default: 1. enable show/hide icon by default
	ShowPasswordIconFile          string // default: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xml.... an eye (a page can give its own picture)
	HidePasswordIconFile          string // default: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xml.... a crossed eye
	EyeIconSize                   any    // default: "". px: the size of the eye (both icons). "": by the height of the field (32; a small field less)
	ShowPasswordHintText          string // default: "Show Password"
	HidePasswordHintText          string // default: "Hide Password"
	MinLength                     any    // default: 6
	MinLengthWarningText          string // default: "Password must be at least 6 characters"
	MustUseNumber                 any    // default: 1
	MustUseNumberWarningText      string // default: "Password must contain at least one number"
	MustUseLetter                 any    // default: 1
	MustUseLetterWarningText      string // default: "Password must contain at least one letter"
	MustUseUppercase              any    // default: 0
	MustUseUppercaseWarningText   string // default: "Password must contain at least one uppercase letter"
	MustUseLowercase              any    // default: 0
	MustUseLowercaseWarningText   string // default: "Password must contain at least one lowercase letter"
	MustUseSpecialChar            any    // default: 0
	MustUseSpecialCharWarningText string // default: "Password must contain at least one special character"
	InvertIconColor               any    // default: 0
	Key                           any    // default: "0"
	StyleName                     string // default: "light" (the kit alone: "light"). "light", "dark", "modern" ("classic": its old name), "modernDark", "ozden", "ozdenDark", "minimal", "minimalDark" or a name added to TextField.styles
	Width                         any    // default: 350
	Height                        any    // default: "auto"
	LeftPadding                   any    // default: 20
	RightPadding                  any    // default: 60
	TitleFontSize                 any    // default: 16
	InputFontSize                 any    // default: 20
	InputHeight                   any    // default: 40. px: the row of the text
	FieldPadding                  any    // default: 14. px: over and under the title and the text (titlePosition "inside")
	DescriptionFontSize           any    // default: 14
	TitlePosition                 string // default: "inside". "inside": the title in the field, over the text. "above": the title over the field (the field is only the row of the text). (Only at create time)
	TitleGap                      any    // default: 4. px between the title and the field (titlePosition "above")
	Value                         any    // default: ""
	ShowDescription               any    // default: 0
	DescriptionText               string // default: ""
	AllowHtml                     any    // default: 0. 1: titleText, descriptionText and unitText are HTML (only for your own texts)
	BackgroundColor               string // default: "#F6F6F6"
	FocusBackgroundColor          string // default: "#F3F4E0"
	HoverBackgroundColor          string // default: "". the field under the mouse (not while it is selected). "": no change
	LineColor                     string // default: "#373836"
	FocusLineColor                string // default: "#65A293"
	BackBorderColor               any    // default: Black(0)
	FocusBackBorderColor          any    // default: Black(0)
	HoverBackBorderColor          string // default: "". the edge under the mouse (not while it is selected). "": no change
	BackBorderTopRound            any    // default: 2
	BackBorderBottomRound         any    // default: 0
	TitleTextColor                string // default: "#555555"
	TitleBold                     any    // default: 0. 1: the title in bold (opensans-bold)
	TitleLetterSpacing            string // default: "". "": normal. Ex: "0.06em"
	InputTextColor                string // default: "#373836"
	InputColorScheme              string // default: "". "": the page's. "dark": the autofill colors of the browser stay dark (on a dark field)
	PlaceholderColor              string // default: "". "": the color of the browser
	DescriptionTextColor          string // default: "#999999"
	WarningBallBorderColor        string // default: "#373836"
	RequiredColor                 string // default: "white"
	AnimatedWarningBall           any    // default: 1
	WarningBallType               string // default: "color". "color": colored ball, "icon": icon image
	WarningBallSize               any    // default: 16. px: the colored ball (warningBallType "color")
	WarningBallBorder             any    // default: 2. px: the edge of the colored ball (warningBallBorderColor)
	WarningBorderColor            string // default: "". the edge of the field while it shows a warning (not while typing). "": no change
	WarningIconSize               any    // default: 20
	RequiredIconFile              string // default: "". image path or data URI. "": built-in icon
	WarningIconFile               string // default: "". image path or data URI. "": built-in icon
	RequiredIconColor             string // default: "#373836". built-in required icon color (built-in warning icon uses warningColor)
	TooltipStyle                  P      // default: {...}
	SelectStyle                   P      // default: {...}
	ShowLeftBox                   any    // default: 0
	ShowRightBox                  any    // default: 0
	ShowUnit                      any    // default: 0
	CreateInput                   any    // default: 1
	UnitText                      string // default: ""
	UnitStyle                     P      // default: {...}
	OnFocus                       any    // default: a function
	OnBlur                        any    // default: a function
	OnChange                      any    // default: a function. the user changed the text (not at create time, not by setValue())

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Style    P // keys of its look, over its package: ozdenui.P{"box": ozdenui.P{"round": 12}}
	Visible  any
	Opacity  any
	OnEnter  any  // the Enter key: func() or func(field *ozdenui.Object)
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

PasswordFieldProps are the params of a PasswordField, by their names in the kit (comp/password-field.js). A param that is not given keeps the default written next to it.

type PeriodBarProps

type PeriodBarProps struct {
	Key        any    // default: "0". Your name for this object: read it in a callback (self.key)
	Width      any    // default: 600
	Height     any    // default: 160
	MonthCount any    // default: 12. This month and the months before it. (Only at create time)
	Language   string // default: "en". "en", "tr" or a key added to PeriodBar.TEXTS (Only at create time)
	Value      any    // default: null. The index of the selected month: 0 the oldest, monthCount - 1 this month. null: this month
	AriaLabel  string // default: "". "": the name of the bar in the language ("Month")
	OnChange   any    // default: a function. self.value, self.previousValue, self.getSelectedDate()
	Style      P      // default: {...}

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

PeriodBarProps are the params of a PeriodBar, by their names in the kit (comp/period-bar.js). A param that is not given keeps the default written next to it.

type PhoneFieldProps

type PhoneFieldProps struct {
	Required               any    // default: 0 (the kit alone: 1)
	TitleText              string // default: "" (the kit alone: "PHONE NUMBER")
	Placeholder            string // default: "(auto)"
	WarningText            string // default: "Invalid phone number format"
	WarningColor           string // default: "#E5885E"
	CountryCode            string // default: "+90"
	PhoneMask              string // default: " (___) ___-____"
	UnitText               string // default: "TR"
	Key                    any    // default: "0"
	StyleName              string // default: "light" (the kit alone: "light"). "light", "dark", "modern" ("classic": its old name), "modernDark", "ozden", "ozdenDark", "minimal", "minimalDark" or a name added to TextField.styles
	Type                   string // default: "text"
	Width                  any    // default: 350
	Height                 any    // default: "auto"
	LeftPadding            any    // default: 20
	RightPadding           any    // default: 60
	TitleFontSize          any    // default: 16
	InputFontSize          any    // default: 20
	InputHeight            any    // default: 40. px: the row of the text
	FieldPadding           any    // default: 14. px: over and under the title and the text (titlePosition "inside")
	DescriptionFontSize    any    // default: 14
	TitlePosition          string // default: "inside". "inside": the title in the field, over the text. "above": the title over the field (the field is only the row of the text). (Only at create time)
	TitleGap               any    // default: 4. px between the title and the field (titlePosition "above")
	Value                  any    // default: ""
	MaxLength              any    // default: 30
	ShowDescription        any    // default: 0
	DescriptionText        string // default: ""
	AllowHtml              any    // default: 0. 1: titleText, descriptionText and unitText are HTML (only for your own texts)
	BackgroundColor        string // default: "#F6F6F6"
	FocusBackgroundColor   string // default: "#F3F4E0"
	HoverBackgroundColor   string // default: "". the field under the mouse (not while it is selected). "": no change
	LineColor              string // default: "#373836"
	FocusLineColor         string // default: "#65A293"
	BackBorderColor        any    // default: Black(0)
	FocusBackBorderColor   any    // default: Black(0)
	HoverBackBorderColor   string // default: "". the edge under the mouse (not while it is selected). "": no change
	BackBorderTopRound     any    // default: 2
	BackBorderBottomRound  any    // default: 0
	TitleTextColor         string // default: "#555555"
	TitleBold              any    // default: 0. 1: the title in bold (opensans-bold)
	TitleLetterSpacing     string // default: "". "": normal. Ex: "0.06em"
	InputTextColor         string // default: "#373836"
	InputColorScheme       string // default: "". "": the page's. "dark": the autofill colors of the browser stay dark (on a dark field)
	PlaceholderColor       string // default: "". "": the color of the browser
	DescriptionTextColor   string // default: "#999999"
	WarningBallBorderColor string // default: "#373836"
	RequiredText           string // default: "Required"
	RequiredColor          string // default: "white"
	AnimatedWarningBall    any    // default: 1
	WarningBallType        string // default: "color". "color": colored ball, "icon": icon image
	WarningBallSize        any    // default: 16. px: the colored ball (warningBallType "color")
	WarningBallBorder      any    // default: 2. px: the edge of the colored ball (warningBallBorderColor)
	WarningBorderColor     string // default: "". the edge of the field while it shows a warning (not while typing). "": no change
	WarningIconSize        any    // default: 20
	RequiredIconFile       string // default: "". image path or data URI. "": built-in icon
	WarningIconFile        string // default: "". image path or data URI. "": built-in icon
	RequiredIconColor      string // default: "#373836". built-in required icon color (built-in warning icon uses warningColor)
	TooltipStyle           P      // default: {...}
	SelectStyle            P      // default: {...}
	ShowLeftBox            any    // default: 0
	ShowRightBox           any    // default: 0
	ShowUnit               any    // default: 0
	CreateInput            any    // default: 1
	UnitStyle              P      // default: {...}
	OnFocus                any    // default: a function
	OnBlur                 any    // default: a function
	OnChange               any    // default: a function. the user changed the text (not at create time, not by setValue())

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Style    P // keys of its look, over its package: ozdenui.P{"box": ozdenui.P{"round": 12}}
	Visible  any
	Opacity  any
	OnEnter  any  // the Enter key: func() or func(field *ozdenui.Object)
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

PhoneFieldProps are the params of a PhoneField, by their names in the kit (comp/phone-field.js). A param that is not given keeps the default written next to it.

type ProgressBarProps

type ProgressBarProps struct {
	Key           any    // default: "0"
	Width         any    // default: 320
	Height        any    // default: "auto"
	Value         any    // default: 0. 0 - maxValue
	SecondValue   any    // default: 0. A second part after the value (value + secondValue <= maxValue). 0: none
	MaxValue      any    // default: 100
	Stripes       any    // default: 0. 1: moving stripes on the value part
	SecondStripes any    // default: 0. 1: moving stripes on the second part
	Limits        any    // default: []. Lines at these values: [80] or [{ value: 80, color: "indianred" }]
	DarkTrack     any    // default: 0. 1: the track in the colors of style.darkTrack (the bars keep theirs)
	Indeterminate any    // default: 0. 1: Progress is not known, show a moving bar.
	Status        string // default: "normal". "normal", "success", "error"
	TitleText     string // default: ""
	AllowHtml     any    // default: 0. 1: titleText and the text of valueFormat are HTML (only for your own texts)
	ValuePosition string // default: "top". "top", "right", "none" (Only at create time)
	ValueFormat   any    // default: a function. Returns the value text.
	OnChange      any    // default: a function. self.value
	OnComplete    any    // default: a function. Called once when the value reaches maxValue.
	StyleName     string // default: "light". "light" ("classic": its old name), "dark", "modern", "ozden", "ozdenDark", "minimal", "minimalDark" or a name added to ProgressBar.styles
	Style         P      // default: {...}. The base of every package (a thin dark bar on a light gray track): a package changes only some keys

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

ProgressBarProps are the params of a ProgressBar, by their names in the kit (comp/progress-bar.js). A param that is not given keeps the default written next to it.

type PropertyPanelProps

type PropertyPanelProps struct {
	Key             any // default: "0"
	Width           any // default: 240
	Data            P   // default: {}. tabs, activeTab, headerTitle, headerItem, title, titleActions, sections, footer, empty (See the USAGE above)
	Opened          any // default: 1. 1: Open at create time.
	OnChange        any // default: a function. Every change: { kind, key, value, oldValue, item, sectionKey }
	Palettes        any // default: null. The color groups of the color picker: [{ key, name, colors, canAdd, emptyText }] or function (panel) -> that
	RecentColorsKey any // default: "". The recent colors of the color picker are kept in basic.storage with this key. "": only until the page closes.
	PickColor       any // default: null. function (panel, done): the eyedropper where the browser has none (VS Code, Safari, Firefox): the page
	Style           P   // default: {...}

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	Height    any
	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

PropertyPanelProps are the params of a PropertyPanel, by their names in the kit (comp/property-panel.js). A param that is not given keeps the default written next to it.

type Props

type Props struct {
	Left   any // with Top: a place of its own in a Box or on the page (in a group, the group places the object)
	Top    any
	Right  any
	Bottom any
	Width  any // 120, "100%", "auto"
	Height any

	Text string // shown exactly as written (a "<b>" stays "<b>"); the text of an Input
	Html string // HTML: "<b>3</b> new"

	Color       string // the background
	TextColor   string
	FontSize    any
	FontFamily  string
	Bold        any
	Italic      any
	TextAlign   string // "left", "center", "right"
	LineHeight  any
	Ellipsis    any // a text that does not fit ends with "..."
	Border      any // px
	BorderColor string
	Round       any    // px: the corners
	BoxShadow   string // CSS
	Opacity     any    // 0 .. 1
	Visible     any
	Clickable   any
	Selectable  any // the text can be selected
	ClipContent any // what goes out of the box is cut
	ScrollX     any
	ScrollY     any
	Cursor      string
	Rotate      any
	ZIndex      any
	Position    string
	Title       string // the small text the system shows under the mouse
	Enabled     any
	TabIndex    any
	Role        string
	Aria        P
	Css         P // CSS of its own: ozdenui.P{"letterSpacing": "1px"}

	// An Input:
	Placeholder string
	InputType   string // "text", "password", "number"...
	MaxLength   any
	ReadOnly    any

	// An Icon:
	Picture  any    // a path, bytes or an image.Image (see Picture())
	ImageFit string // "contain", "cover"...
	Alt      string

	// A group (VGroup, HGroup):
	Flow    string
	Align   string // "center" is the default; "left top", "right center"...
	Gap     any
	Padding any // 20 or []int{x, y}
	Wrap    any
	Justify string
	Hug     any // as large as its objects
	Stretch any // the objects without a width / height fill the group across

	// Inside a group:
	Fill   bool // the object takes the room the others leave: the height in a VGroup, the width in an HGroup
	Grow   any
	Shrink any

	// Events: func(), func(obj *ozdenui.Object) or func(obj *ozdenui.Object, event ozdenui.Event).
	// Any other event of the page: obj.On("dblclick", fn)
	OnClick      any
	OnInput      any // an Input: at every change of its text
	OnEnter      any // an Input: the Enter key
	OnKeyDown    any
	OnMouseEnter any
	OnMouseLeave any
	OnFocus      any
	OnBlur       any

	// Extra: any other value of basic.js, by its own name: ozdenui.P{"textSize": 12}
	Extra P
}

Props are the values of a basic object (Box, Label, Button, Input, Icon) and of a group (VGroup, HGroup). A value that is not given keeps the default of basic.js. A size is a number (px) or a text: "100%", "auto".

ozdenui.Label(ozdenui.Props{Text: "Hello", FontSize: 24, TextColor: "#1F2933"})

Flags take true / false (or 1 / 0, as basic.js writes them).

type RadioButtonProps

type RadioButtonProps struct {
	Key           any    // default: "0"
	Width         any    // default: "auto"
	Height        any    // default: "auto"
	Group         string // default: "default". Radio buttons with the same group name work together.
	Value         any    // default: "". Returned by RadioButton.getValue(group)
	Checked       any    // default: 0. 0, 1
	Enabled       any    // default: 1. 0, 1
	LabelText     string // default: ""
	AllowHtml     any    // default: 0. 1: labelText is HTML (only for your own texts)
	LabelPosition string // default: "right". "right", "left"
	OnChange      any    // default: a function. Called when this radio button is selected.
	StyleName     string // default: "light". "light" ("classic": its old name), "modern", "dark", "minimal", "minimalDark" or a name added to RadioButton.styles
	Style         P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

RadioButtonProps are the params of a RadioButton, by their names in the kit (comp/radio-button.js). A param that is not given keeps the default written next to it.

type RangeSliderProps

type RangeSliderProps struct {
	Key             any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left            any    // default: 0
	Top             any    // default: 0
	Width           any    // default: 250
	Height          any    // default: 44. WHY: The place a finger can take; the bar stands in its middle.
	MinValue        any    // default: 0. The value at the left end
	MaxValue        any    // default: 100. The value at the right end
	Step            any    // default: 1. The values are min + n * step (Ex: 0.5)
	LowValue        any    // default: null. The left knob. null: minValue
	HighValue       any    // default: null. The right knob. null: maxValue
	MinGap          any    // default: 0. The smallest distance between the two values
	ShowValueOnMove any    // default: 1. 1: the bubble of the value over a knob that moves
	FormatValue     any    // default: null. a Format text, made by the page at once: "{:,.2f} TL", "{:.0f} kg", "{:.1%}" (not a function)
	Enabled         any    // default: 1
	LowAriaLabel    string // default: "Minimum". The names a screen reader says
	HighAriaLabel   string // default: "Maximum"
	OnChange        any    // default: a function. It moves: self.lowValue, self.highValue
	OnChangeEnd     any    // default: a function. It was let go
	StyleName       string // default: "round". "round", "roundDark", "minimal", "minimalDark" or a name added to RangeSlider.styles
	Style           P      // default: {...}. The round style package (default)

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

RangeSliderProps are the params of a RangeSlider, by their names in the kit (comp/range-slider.js). A param that is not given keeps the default written next to it.

type RichTextEditorProps

type RichTextEditorProps struct {
	Key          any    // default: "0"
	Width        any    // default: 560
	Height       any    // default: 300
	HtmlText     string // default: "". Start content (HTML, it is cleaned)
	Placeholder  string // default: "Write something..."
	Tools        any    // default: ["bold", "italic", "underline", "strike", "|", "h2", "h3"...
	PasteAs      string // default: "clean". "clean": keeps the allowed formats, "text": plain text
	MaxLength    any    // default: 0. Characters of the text. 0: no limit
	ShowCounter  any    // default: 0. 1: "120 / 500" (or "120 characters") at the bottom right
	ReadOnly     any    // default: 0
	Enabled      any    // default: 1
	SpellCheck   any    // default: 1
	UseScrollBar any    // default: 1. basic/scroll-bar.js for the writing area. 0: the scrollbar of the browser.
	AriaLabel    string // default: "Text editor"
	Texts        P      // default: {...}
	OnChange     any    // default: a function. self.getHtmlText(), self.getText()
	OnFocus      any    // default: a function
	OnBlur       any    // default: a function
	StyleName    string // default: "light". "light" ("classic": its old name), "modern", "dark" or a name added to RichTextEditor.styles
	Style        P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

RichTextEditorProps are the params of a RichTextEditor, by their names in the kit (comp/rich-text-editor.js). A param that is not given keeps the default written next to it.

type ScrollAreaProps

type ScrollAreaProps struct {
	Key          any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left         any    // default: 0. The place on a box (the page). In a group, the group places it.
	Top          any    // default: 0
	Width        any    // default: "100%". "100%" in an HGroup: the width the other objects leave.
	Height       any    // default: "100%". "100%" in a VGroup: the height the other objects leave.
	Align        string // default: "left top". The content, as in a VGroup: "center top", "center center" (in the middle while it fits)...
	Gap          any    // default: 0. px between the objects of the content
	Padding      any    // default: 0. Around the content, it scrolls with it: 40, [x, y] or [left, top, right, bottom]
	ScrollY      any    // default: 1. 1: it scrolls down.
	ScrollX      any    // default: 0. 1: it scrolls to the side too.
	UseScrollBar any    // default: 1. 1: the ScrollBar of the kit, when basic/scroll-bar.js is loaded. (Only at create time)
	OnScroll     any    // default: a function. The content moved. (self.getScrollTop())
	StyleName    string // default: "light". "light", "dark", "minimal", "minimalDark" or a name added to ScrollArea.styles
	Style        P      // default: {...}. Light style package (default)

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

ScrollAreaProps are the params of a ScrollArea, by their names in the kit (comp/scroll-area.js). A param that is not given keeps the default written next to it.

type ScrollingTextProps

type ScrollingTextProps struct {
	Width            any    // default: 200
	Height           any    // default: "auto". As high as the text (with the padding)
	LabelText        string // default: ""
	AllowHtml        any    // default: 0. 1: the text is HTML (only for your own texts)
	Mode             string // default: "always". "always": it slides again and again; "hover": only while the mouse is over it
	Speed            any    // default: 40. px in a second
	WaitTime         any    // default: 1.2. s: at the start and at the end (the longest wait: a short slide waits less)
	MinWaitTime      any    // default: 0.5. s: the wait of a very short slide (a few hidden letters are read quickly, but not in a blink)
	FullWaitDistance any    // default: 120. px: a slide this long (or longer) waits the whole waitTime; a shorter one waits less
	StyleName        string // default: "classic". "classic" or a name added to ScrollingText.styles
	Style            P      // default: {...}

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

ScrollingTextProps are the params of a ScrollingText, by their names in the kit (comp/scrolling-text.js). A param that is not given keeps the default written next to it.

type SearchInputProps

type SearchInputProps struct {
	Left                  any    // default: 0
	Top                   any    // default: 0
	Width                 any    // default: 300
	Height                any    // default: 50
	SearchIconFile        string // default: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xml...
	ClearIconFile         string // default: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xml...
	SearchIconSize        any    // default: 24
	SearchIconLeft        any    // default: 16. px: the search icon from the left side of the box
	SearchIconGap         any    // default: 8. px: between the search icon and the text
	ClearIconRight        any    // default: 16. px: the clear icon from the right side of the box (more: the right end is for an object of the page)
	TextEndSpace          any    // default: null. px between the end of the text and the clear icon. null: 20 - searchIconSize (where it always was)
	ShowClearIcon         any    // default: 1
	ClearIconMinTextWidth any    // default: 0. px: the clear icon is not shown when the text beside it would be narrower (0: always shown)
	TextFadeWidth         any    // default: 24. px: a text longer than the box fades out over this width where it is cut (0: cut sharply)
	ClearOnEscape         any    // default: 0. 1: Escape clears the text (as the clear icon); in an empty field it goes on to the page
	Value                 any    // default: "". The text in the box: typing changes it. setValue(), getValue()
	Placeholder           string // default: "Search"
	Color                 string // default: "whitesmoke"
	TextColor             string // default: "rgba(0, 0, 0, 0.8)"
	PlaceholderColor      string // default: "". "": the color of the browser. On a dark ground give a color like White(0.35).
	SearchIconOpacity     any    // default: 1
	ClearIconOpacity      any    // default: 0.6. The clear icon while it is shown
	Border                any    // default: 0
	BorderColor           string // default: "rgba(0, 0, 0, 0.1)"
	BorderBottomStyle     string // default: "2px solid rgba(0, 0, 0, 0.06)"
	FocusBorderColor      string // default: "". the edge while typing: 2 px of this color ("": it does not change)
	FocusBorderWidth      any    // default: 2. px of the edge while typing: 2 the edge and a 1 px line inside it, 1 only the edge
	Round                 any    // default: 6
	FontSize              any    // default: 20
	TextOffsetY           any    // default: 0. px: the text up (-) or down (+) from the middle of the box (the ozden packages: -2)
	ClearIconOffsetY      any    // default: 0. px: the clear icon up (-) or down (+) from the middle of the box (the ozden packages: -1)
	SearchIconOffsetY     any    // default: 0. px: the search icon up (-) or down (+) from the middle of the box (light and dark: 1)
	InvertIconColor       any    // default: 0. 1: both icons are inverted (white icons for a dark field)
	InvertSearchIconColor any    // default: null. null: invertIconColor. 0 / 1: only the search icon
	InvertClearIconColor  any    // default: null. null: invertIconColor. 0 / 1: only the clear icon
	Animated              any    // default: 0. 1: small hover / focus / clear motions. (box.setAnimated(0/1))
	HoverRingColor        string // default: "rgba(0, 0, 0, 0.08)". animated: the thin line inside the border under the mouse
	FocusRingColor        string // default: "rgba(0, 0, 0, 0.16)". animated: the line while typing
	OnChange              any    // default: a function. The text changed (typed, pasted, cleared, setValue()): self.value, self.getSearchText() (lower case). Not at create time, not with setValue(value, 1)
	OnEnter               any    // default: a function. Enter, and the clear icon: self.getSearchText()
	StyleName             string // default: "ozden" (the kit alone: "ozden"). "ozden", "ozdenDark", "original" (the look of these defaults), "light" ("classic": its old name), "dark", "minimal", "minimalDark" or a name added to SearchInput.styles
	Style                 P      // default: {}. WHY: the look is in the flat params above; the packages are packages of params (see SearchInput.styles).

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

SearchInputProps are the params of a SearchInput, by their names in the kit (comp/search-input.js). A param that is not given keeps the default written next to it.

type SearchResultsProps

type SearchResultsProps struct {
	Key              any    // default: "0"
	Anchor           any    // default: null. The basic.js object the list opens under. (Ex: a SearchInput)
	AnchorAlign      string // default: "right". "right": the right edges meet, "left": the left edges meet.
	MatchAnchorWidth any    // default: 0. 1: the list is as wide as the anchor (both edges meet; maxWidth is not used). setMatchAnchorWidth()
	MaxWidth         any    // default: 380
	MaxHeightRatio   any    // default: 0.7. Of the screen height.
	OffsetY          any    // default: 6. Space between the anchor and the list.
	ScreenMargin     any    // default: 8. The list never comes closer than this to the edge of the screen.
	EmptyText        string // default: "No results for \"{query}\"". {query} is replaced by the text that was searched.
	ShowEmpty        any    // default: 1. 0: The list is not opened at all when there is no result.
	HintText         string // default: "↑ ↓ to move · Enter to open · Esc to close"
	ShowHint         any    // default: 1
	ShowGroups       any    // default: 1
	OpenOnFocus      any    // default: 1. Focus on the input opens the last results again.
	CloseOnBlur      any    // default: 1
	UseScrollBar     any    // default: 1. basic/scroll-bar.js. 0: the scrollbar of the browser.
	ZIndexValue      any    // default: 1000. WHY: "zIndex" is a basic.js property of every box, the name is taken.
	AriaLabel        string // default: "Search results"
	OnSelect         any    // default: a function
	OnOpen           any    // default: a function
	OnClose          any    // default: a function
	OnActiveChange   any    // default: a function
	StyleName        string // default: "light". "light" ("classic": its old name), "dark", "modern" or a name added to SearchResults.styles
	Style            P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Width    any // 120, "100%", "auto"
	Height   any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

SearchResultsProps are the params of a SearchResults, by their names in the kit (comp/search-results.js). A param that is not given keeps the default written next to it.

type SelectBoxProps

type SelectBoxProps struct {
	Key               any    // default: "0"
	Width             any    // default: 240
	Height            any    // default: 44
	Options           any    // default: []. [{ value, label, description, iconFile, group, disabled }] or ["A", "B"]
	Value             any    // default: null. Single: a value or null. Multiple: [values]
	Multiple          any    // default: 0
	Searchable        any    // default: "auto". 1, 0, "auto" (more than autoSearchCount options)
	AutoSearchCount   any    // default: 8
	Clearable         any    // default: 0. 1: Clear button in the field
	CloseOnSelect     any    // default: null. null: 1 for single, 0 for multiple
	ShowSelectAll     any    // default: 1. Multiple: "Select all" and "Clear" buttons
	Placeholder       string // default: "Select..."
	SearchPlaceholder string // default: "Search..."
	EmptyText         string // default: "No results"
	SelectAllText     string // default: "Select all"
	ClearText         string // default: "Clear"
	MoreText          string // default: "+{count}". Multiple: field text when many are selected. Ex: "Apple, Banana +3"
	FieldLabelCount   any    // default: 2. Multiple: how many labels are written in the field
	PanelMinWidth     any    // default: 220
	PanelMaxHeight    any    // default: 320
	MaxRenderCount    any    // default: 300
	Enabled           any    // default: 1
	UseScrollBar      any    // default: 1. basic/scroll-bar.js on the list (load it first). 0: the scrollbar of the browser (hidden by basic.css in Chrome).
	UseSearchInput    any    // default: 1. 1: the search box is a SearchInput when comp/search-input.js is loaded first (style.searchInput). 0: the own input (style.search)
	FullHeightList    any    // default: 0. 1: the list opens from the top of the page to its bottom, as wide as the field, at its left. (box.setFullHeightList())
	Scale             any    // default: null. Multiplies every size. null: basic.uiScale (1, or 1 / page.zoom on a fitted page). (Only at create time)
	AriaLabel         string // default: ""
	OnChange          any    // default: a function. self.value, self.getSelectedOptions()
	OnOpen            any    // default: a function
	OnClose           any    // default: a function
	StyleName         string // default: "light". "light" ("classic": its old name), "dark", "ozden", "ozdenDark", "minimal", "minimalDark" or a name added to SelectBox.styles
	Style             P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

SelectBoxProps are the params of a SelectBox, by their names in the kit (comp/select-box.js). A param that is not given keeps the default written next to it.

type SettingsRowProps

type SettingsRowProps struct {
	Key             any    // default: "0". Your name for this object: read it in a callback (self.key)
	Width           any    // default: "100%"
	Height          any    // default: 100
	Color           string // default: "white". The background of the row
	TitleText       string // default: ""
	DescriptionText string // default: "". The small text under the title. "": the title stands in the middle (setDescriptionText)
	TitleColor      any    // default: Black(0.8). Ex: "orangered" for a row that deletes something (setTitleColor)
	Control         any    // default: null. function (row): the objects made in it stand at the right (Ex: a Toggle). Its result: row.controlObject
	Arrow           any    // default: 0. 1: a chevron at the right (a row that opens a page: give it onClick)
	OnClick         any    // default: a function. function (self, event): the row can be clicked (role "button", Enter / Space)
	Style           P      // default: {...}

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

SettingsRowProps are the params of a SettingsRow, by their names in the kit (comp/settings-row.js). A param that is not given keeps the default written next to it.

type SidePanelProps

type SidePanelProps struct {
	Key             any    // default: "0"
	Side            string // default: "right". "right", "left", "bottom", "top" (Only at create time)
	Container       any    // default: null. null: the page. A box: the panel and its backdrop are made in it. (Only at create time)
	PanelSize       any    // default: 420. Width of a left/right panel, height of a top/bottom panel.
	ScreenMargin    any    // default: 60. The panel never comes closer than this to the opposite edge (of the page or the container).
	Duration        any    // default: 300. Length of the animation, in milliseconds.
	Fade            any    // default: 1. 1: The panel fades in / out with its slide. 0: It only slides. (The backdrop always fades.) (Only at create time)
	TitleText       string // default: ""
	AllowHtml       any    // default: 0. 1: titleText is HTML (only for your own texts)
	ShowHeader      any    // default: 1. 0: No header. (The close button goes with it.)
	ShowCloseButton any    // default: 1
	ShowBackdrop    any    // default: 1
	CloseOnBackdrop any    // default: 1
	CloseOnEscape   any    // default: 1
	Exclusive       any    // default: 1. 1: Opening this panel closes the other open panel.
	Opened          any    // default: 0. 1: Open when it is created. (No animation.)
	AriaLabel       string // default: "Panel"
	OnOpen          any    // default: a function
	OnClose         any    // default: a function
	OnBeforeClose   any    // default: a function. Return false to keep the panel open.
	StyleName       string // default: "light". "light" ("classic": its old name), "modern", "dark", "minimal", "minimalDark" or a name added to SidePanel.styles
	Style           P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Width    any // 120, "100%", "auto"
	Height   any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

SidePanelProps are the params of a SidePanel, by their names in the kit (comp/side-panel.js). A param that is not given keeps the default written next to it.

type SliderFieldProps

type SliderFieldProps struct {
	Key         any    // default: "0"
	Width       any    // default: 320
	Height      any    // default: 44
	LabelText   string // default: "". Text at the left. Ex: "Width"
	Value       any    // default: 0
	MinValue    any    // default: 0
	MaxValue    any    // default: 10
	Step        any    // default: 1
	Precision   string // default: "auto". Decimals shown and used for rounding. "auto": the decimals of the step (0.25 -> 2)
	UnitText    string // default: "". After the value. Ex: "px", " kg" (with the space)
	Editable    any    // default: 1. 1: A click on the value opens the typing.
	ShowTicks   any    // default: 1. 1: Dots for the steps in the empty part.
	MaxTicks    any    // default: 30. More steps than this -> fewer dots
	Enabled     any    // default: 1
	AriaLabel   string // default: "Value". Used when labelText is empty
	ValueFormat any    // default: a function. Text of the value
	OnChange    any    // default: a function. self.value (also while dragging)
	OnChangeEnd any    // default: a function. After a drag, a key step or a typed value
	StyleName   string // default: "light". "light" ("classic": its old name), "dark", "modern", "ozden", "minimal", "minimalDark" or a name added to SliderField.styles
	Style       P      // default: {...}. The base of every package (a light gray field with a gray fill): a package changes only some keys

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

SliderFieldProps are the params of a SliderField, by their names in the kit (comp/slider-field.js). A param that is not given keeps the default written next to it.

type SliderProps

type SliderProps struct {
	Key                  any    // default: 0
	Width                any    // default: 250
	Value                any    // default: 0. Current selected value
	MinValue             any    // default: 0. The value at the left end (setMinValue)
	MaxValue             any    // default: 100. The value at the right end (setMaxValue)
	Step                 any    // default: 1. The values are min + n * step (Ex: 0.5). setStep()
	MinThumbHeight       any    // default: 44
	ThumbColor           string // default: "rgba(0,0,0,0.7)". Color of the draggable button
	TrackHeight          any    // default: 16. Ex: 16, 50
	TrackColor           string // default: "cadetblue". Color of the filled part
	TrackBackgroundColor string // default: "rgba(0,0,0,0.05)". Color of the unfilled part
	OnChangeStart        any    // default: a function. A drag starts (a tap and a key are short drags)
	OnChange             any    // default: a function. self.value changed: while dragging, a tap, a key. Not at create time, not by setValue()
	OnChangeEnd          any    // default: a function. The drag ends: a page that saves, saves here
	ShowValueAtStart     any    // default: 0
	ShowValueOnSet       any    // default: 1
	ShowValueOnDrag      any    // default: 1
	AriaLabel            string // default: "". The name a screen reader says (Ex: "Volume"). "": none
	StyleName            string // default: "round" (the kit alone: "split"). "split", "splitDark", "round", "roundDark", "minimal", "minimalDark" or a name added to Slider.styles
	Style                P      // default: {...}. The split style package (default): inspired by Material 3

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Height   any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

SliderProps are the params of a Slider, by their names in the kit (comp/slider.js). A param that is not given keeps the default written next to it.

type SmartButtonProps

type SmartButtonProps struct {
	Key           any    // default: "0"
	StyleName     string // default: "ozden" (the kit alone: "ozden"). the template (SmartButton.styles): "ozden" (the default) ... "ozden4", "pill", "outlined", "ozdenDark" ... "ozden4Dark", "minimal", "minimalDark", "minimalDanger", "minimalDangerDark"
	Tone          string // default: "". a color of the kit (SmartButton.tones): "white", "cyan", "orange", "yellow", "green", "blue", "cyanDark"..., "ink" / "inkDark" (minimal). "": the gray of the template. setTone()
	Width         any    // default: "auto". an icon button (labelText: "") is a square
	Height        any    // default: 44. "auto": as high as its padding and content (an icon on top of a text is "auto")
	LabelText     string // default: "Button". "": an icon button
	AllowHtml     any    // default: 0. 1: labelText is HTML (only for your own texts)
	IconFile      string // default: "". "": no icon (Ex: "comp/smart-button/alert-black.png")
	IconPosition  string // default: "left". "left", "top"
	Enabled       any    // default: 1. 0: gray, can not be pressed (set later with setEnabled)
	AriaLabel     string // default: "". "": labelText is read. An icon button needs it (Ex: "Delete")
	Waiting       any    // default: 0. 1: it waits (set later with setWaiting)
	WaitingType   string // default: "clock". "clock" (the default wait) or "dots"
	Animated      any    // default: 1. 1: pressed it gets smaller and darker (style.press). setAnimated()
	Ripple        any    // default: 0. 1: a wave from the pressed point (it works with animated: 0 too). setRipple()
	Ask           string // default: "". "Click again to delete.": two clicks (the first one asks with an orange button and this text in a bubble). setAsk()
	OnBeforeClick any    // default: a function. function (self): false stops the press, with no ask either
	OnClick       any    // default: a function. Not called while waiting
	OnWaitingEnd  any    // default: a function. The wait ended (setWaiting(0))
	Style         P      // default: {...}. ozden (the default template)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

SmartButtonProps are the params of a SmartButton, by their names in the kit (comp/smart-button.js). A param that is not given keeps the default written next to it.

type SmartTableProps

type SmartTableProps struct {
	Key                   any    // default: "0"
	TitleHeight           any    // default: 50
	ItemHeight            any    // default: 40
	InfoHeight            any    // default: 50
	ItemLineCount         any    // default: 16
	HighlightTitle        any    // default: true
	HighlightLine         any    // default: true
	InvertColor           any    // default: 0
	NoDataFoundAlert      string // default: "No data found!"
	SearchKeyword         string // default: ""
	SearchTitleIndex      any    // default: -1. -1: Search in all columns (ALL). 0, 1...: Search only in this column.
	ShowSearchTitleSelect any    // default: 1. 0: Hide the column select box (ALL) next to the search input.
	WheelScroll           any    // default: 0. 1: The mouse wheel scrolls the rows (and the page does not scroll). 0: The wheel is left to the page.
	AllowHtml             any    // default: 0. 1: The cell values, the titles of the columns and the texts are written as HTML. 0: As plain text (safe for the text of the users)
	ShowCellTooltip       any    // default: 1. 1: a cell whose text does not fit shows all of it in a bubble (comp/tooltip.js). 0: no bubble
	AllTitlesText         string // default: "ALL"
	CanSelect             any    // default: 1. 1: a click or a key selects a row; Enter runs onSelect. 0: no selection, no keys
	FitLineCount          any    // default: 0. 1: rows of about itemHeight px, as many as the height of the table holds
	Locale                string // default: "". the numbers of the info line ("": the language of the page). Ex: "en-US", "tr-TR"
	SortByTitleIndex      any    // default: 0
	SortDirection         string // default: "A-Z". "A-Z" or "Z-A"
	FillTestData          any    // default: 0
	OnSelect              any    // default: a function
	TitleDataList         any    // default: [...]. Ex: { name: "ID", dataTitle: "id", dataType: "integer", width: 100, sortable: 1 }
	ItemDataList          any    // default: [...]. Ex: { id: 1, name: "Bugra", desc: "about", email: "emainil", active: 1 }
	ScrollBarParams       P      // default: {...}
	SearchTitleMenuParams P      // default: {}
	SearchInputParams     P      // default: {...}
	StyleName             string // default: "light". "light" ("classic": its old name), "dark", "green", "minimal", "minimalDark" or a name added to SmartTable.styles
	Style                 P      // default: {...}. Light style package (default): the look of DataTable "light"

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Width    any // 120, "100%", "auto"
	Height   any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

SmartTableProps are the params of a SmartTable, by their names in the kit (comp/smart-table.js). A param that is not given keeps the default written next to it.

type SortableListProps

type SortableListProps struct {
	Key          any    // default: "0"
	Width        any    // default: 340
	Height       any    // default: 320. "auto": grows with the rows (no scrolling)
	Items        any    // default: []. Strings or { key, text, description, locked } (style.desc is the look of the description)
	DragBy       string // default: "handle". "handle": drag by the grip at the left, "row": drag by the whole row (touch: the list then scrolls only by the scroll bar)
	ShowHandle   any    // default: 1. The grip at the left. (dragBy: "row" can hide it)
	ShowNumbers  any    // default: 1. Position numbers
	ShowButtons  any    // default: 0. Up / down buttons
	Removable    any    // default: 0. A remove button and the Delete key
	Enabled      any    // default: 1
	RowGap       any    // default: 6. Space between the rows
	EmptyText    string // default: "No items"
	UseScrollBar any    // default: 1. basic/scroll-bar.js. 0: the scrollbar of the browser.
	AriaLabel    string // default: "Sortable list"
	Texts        P      // default: {...}
	OnChange     any    // default: a function. self.getItems() for the new order
	OnRemove     any    // default: a function
	OnItemClick  any    // default: a function
	OnDragStart  any    // default: a function
	OnDragEnd    any    // default: a function. index: the new position
	StyleName    string // default: "light". "light" ("classic": its old name), "modern", "dark" or a name added to SortableList.styles
	Style        P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

SortableListProps are the params of a SortableList, by their names in the kit (comp/sortable-list.js). A param that is not given keeps the default written next to it.

type SparkLineBoxProps

type SparkLineBoxProps struct {
	Key         any    // default: "0"
	Width       any    // default: 200
	Height      any    // default: 80
	TitleText   string // default: "Sold Items"
	ValueText   string // default: "1.3K"
	AllowHtml   any    // default: 0. 1: titleText, valueText, trendText and the text of valueFormat are HTML (only for your own texts)
	IconFile    string // default: "". "": No icon
	LineColor   string // default: "tomato"
	Values      any    // default: []. [10, 20, { value: 15, color: "orange" }]
	MaxPoints   any    // default: 30. How many values are shown
	MinValue    any    // default: null. null: Auto. 0: The base line is always zero.
	MaxValue    any    // default: 0. 0: Auto (the biggest visible value is the top of the graph)
	Curve       string // default: "smooth". "smooth", "linear"
	ShowArea    any    // default: 1. 1: Light fill under the line
	ShowLastDot any    // default: 1. 1: A dot on the last value
	ShowMinMax  any    // default: 0. 1: Dots on the smallest and the biggest value
	ShowTrend   any    // default: 1. 1: Trend badge (last value compared with the first visible value)
	TrendText   string // default: "". Your own badge text. "": Calculated. (Ex: "▲ 12%")
	ShowTooltip any    // default: 1. 1: Tooltip with the value on mouse over
	Animated    any    // default: 1. 1: The line moves with a short motion when a value is added.
	ValueFormat any    // default: a function. Tooltip text
	OnClick     any    // default: a function
	Style       P      // default: {...}

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

SparkLineBoxProps are the params of a SparkLineBox, by their names in the kit (comp/spark-line-box.js). A param that is not given keeps the default written next to it.

type SplitterProps

type SplitterProps struct {
	Key         any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left        any    // default: 0
	Top         any    // default: 0
	Width       any    // default: "100%"
	Height      any    // default: "100%"
	Direction   string // default: "horizontal". "horizontal": side by side, "vertical": one under the other
	FirstSize   any    // default: "30%". px or a part of the box
	SecondSize  any    // default: null. px or a part of the box: the second area keeps its size (firstSize is not used)
	MinFirst    any    // default: 60. px
	MinSecond   any    // default: 60. px
	KeyStep     any    // default: 16. px: an arrow key moves the line this much
	AriaLabel   string // default: "Change the sizes of the areas"
	OnChange    any    // default: a function. The line moves. (Not at create time, not with silent: 1)
	OnChangeEnd any    // default: a function. The line is let go.
	StyleName   string // default: "light". "light", "dark", "minimal", "minimalDark" or a name added to Splitter.styles
	Style       P      // default: {...}. Light style package (default)

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

SplitterProps are the params of a Splitter, by their names in the kit (comp/splitter.js). A param that is not given keeps the default written next to it.

type StatusBarProps

type StatusBarProps struct {
	Key         any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left        any    // default: 0
	Width       any    // default: "100%"
	Height      any    // default: 28
	MessageText string // default: ""
	MessageTone string // default: "". "", "success", "warn", "error", "info"
	Items       any    // default: []. [{ key, text, icon, tone, ariaLabel, onClick }, "Text"]
	Busy        any    // default: 0
	AriaLabel   string // default: "Status bar"
	StyleName   string // default: "light". "light", "dark", "minimal", "minimalDark" or a name added to StatusBar.styles
	Style       P      // default: {...}. Light style package (default)

	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

StatusBarProps are the params of a StatusBar, by their names in the kit (comp/status-bar.js). A param that is not given keeps the default written next to it.

type StepBarProps

type StepBarProps struct {
	Key         any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left        any    // default: 0
	Top         any    // default: 0
	Width       any    // default: "100%"
	Height      any    // default: "auto"
	Steps       any    // default: []. [STEP]: a text or { key, text, description }
	CurrentStep any    // default: 0. The step of now, from 0. steps.length: every step is done.
	CanGoBack   any    // default: 1. 1: a step that is behind can be clicked (onStepClick)
	ShowTitles  any    // default: 1
	AriaLabel   string // default: "Steps"
	OnStepClick any    // default: a function. A step that is behind was chosen. setStep() goes there.
	StyleName   string // default: "light". "light", "dark", "minimal", "minimalDark" or a name added to StepBar.styles
	Style       P      // default: {...}. Light style package (default)

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

StepBarProps are the params of a StepBar, by their names in the kit (comp/step-bar.js). A param that is not given keeps the default written next to it.

type StepperProps

type StepperProps struct {
	Key          any    // default: "0"
	Width        any    // default: 150
	Height       any    // default: 44
	Value        any    // default: 1
	MinValue     any    // default: 0
	MaxValue     any    // default: 10
	Step         any    // default: 1
	Precision    any    // default: 0. Decimals shown and used for rounding. (step: 0.5 -> precision: 1)
	UnitText     string // default: "". After the value. Ex: " kg" (with the space)
	Editable     any    // default: 1. 1: The value can be typed.
	Wrap         any    // default: 0. 1: After max comes min, before min comes max.
	HoldToRepeat any    // default: 1. 1: Press and hold a button to change the value continuously.
	Layout       string // default: "horizontal". "horizontal": [-] value [+], "compact": value [-+] stacked at the right (Only at create time)
	Enabled      any    // default: 1
	AriaLabel    string // default: "Value"
	ValueFormat  any    // default: a function. a Format text, made by the page at once: "{:,.2f} TL", "{:.0f} kg", "{:.1%}" (not a function)
	OnChange     any    // default: a function. self.value
	OnMinReached any    // default: a function. Called when the value arrives at min
	OnMaxReached any    // default: a function. Called when the value arrives at max
	StyleName    string // default: "light". "light" ("classic": its old name), "modern", "dark", "ozden", "ozdenDark", "minimal", "minimalDark" or a name added to Stepper.styles
	Style        P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

StepperProps are the params of a Stepper, by their names in the kit (comp/stepper.js). A param that is not given keeps the default written next to it.

type TabsProps

type TabsProps struct {
	Key         any    // default: "0". Your name for this object: read it in a callback (self.key)
	Width       any    // default: "100%" (the kit alone: "auto")
	Height      any    // default: "auto"
	Tabs        any    // default: []. [{ key, text, iconFile, count, badge, disabled, closable, selectedColor, selectedTextColor, selectedIconFile }] or ["A", "B"]
	Value       any    // default: null. Key of the active tab. null: the first enabled tab.
	Variant     string // default: "underline". "underline", "pill" (Only at create time)
	Vertical    any    // default: 0. 1: Tabs are stacked. (Only at create time)
	FullWidth   any    // default: 0. 1: Tabs share the bar width equally. (Only at create time)
	Closable    any    // default: 0. 1: Every tab has a close (x) button. (A tab can also set its own "closable".)
	AddButton   any    // default: 0. 1: "+" button at the end of the bar.
	ShowArrows  any    // default: "auto". "auto": Arrow buttons when the tabs do not fit. 0: Never.
	Panels      any    // default: 1 (the kit alone: 0). 1: A content Box for every tab. (Only at create time)
	PanelHeight any    // default: "auto". Height of the panels area. Ex: 300 or "auto" (grows with the content)
	BarWidth    any    // default: 200. vertical + panels: Width of the tab bar. (The panels take the rest.)
	Scale       any    // default: null. Multiplies every size. null: basic.uiScale (1, or 1 / page.zoom on a fitted page). (Only at create time)
	Enabled     any    // default: 1
	AriaLabel   string // default: "Tabs"
	OnChange    any    // default: a function. self.value, self.previousValue, self.getActiveTab()
	OnClose     any    // default: a function. Return false to keep the tab.
	OnAdd       any    // default: a function
	StyleName   string // default: "light". "light" ("classic": its old name), "modern", "dark", "minimal", "minimalDark" or a name added to Tabs.styles
	Style       P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

TabsProps are the params of a Tabs, by their names in the kit (comp/tabs.js). A param that is not given keeps the default written next to it.

type TagInputProps

type TagInputProps struct {
	Key                    any    // default: "0"
	Width                  any    // default: 320
	Height                 any    // default: "auto"
	Tags                   any    // default: []. ["audio", "guide"]
	Suggestions            any    // default: []. ["audio", "fitness", ...] Shown while typing. (Tags that are already added are hidden.)
	AllowCustom            any    // default: 1. 0: Only the suggestions can be added.
	ShowSuggestionsOnFocus any    // default: 0. 1: The suggestion list opens also when the input is empty.
	MaxSuggestions         any    // default: 8
	MaxTags                any    // default: 0. 0: No limit
	MinLength              any    // default: 1
	MaxLength              any    // default: 32
	Lowercase              any    // default: 0. 1: "Audio" -> "audio"
	Separators             string // default: ",". Characters that end a tag while typing and when a text is pasted. (Enter always works.)
	Placeholder            string // default: "Add a tag..."
	EmptyText              string // default: "No suggestions". Suggestion list, when the typed text does not match. (allowCustom: 0)
	Enabled                any    // default: 1
	AriaLabel              string // default: "Tags"
	Validate               any    // default: a function. Returns an error text, or "" when the tag is ok.
	OnChange               any    // default: a function. self.getTags()
	OnAdd                  any    // default: a function
	OnRemove               any    // default: a function
	OnReject               any    // default: a function. reason: "duplicate", "max", "short", "long", "notAllowed", "invalid" (or the validate() text)
	Messages               P      // default: {...}
	StyleName              string // default: "light". "light" ("classic": its old name), "modern", "dark", "minimal", "minimalDark" or a name added to TagInput.styles
	Style                  P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

TagInputProps are the params of a TagInput, by their names in the kit (comp/tag-input.js). A param that is not given keeps the default written next to it.

type TextAreaFieldProps

type TextAreaFieldProps struct {
	Type                   string // default: "textarea"
	TitleText              string // default: "" (the kit alone: "MESSAGE")
	Placeholder            string // default: "" (the kit alone: "How can we help you?")
	Required               any    // default: 0 (the kit alone: 1)
	MinCharCount           any    // default: 0 (the kit alone: 80). 0, 80
	ShowCount              any    // default: 0 (the kit alone: 1). 0, 1
	LengthText             string // default: "length: "
	WarningText            string // default: "" (the kit alone: "The entered text must be longer than 80")
	WarningColor           string // default: "#E5885E"
	MaxLength              any    // default: 100000 (the kit alone: 255)
	Height                 any    // default: 170. 170 (4line)
	RightPadding           any    // default: 5
	UnitStyle              P      // default: {...}
	ScrollBarStyle         P      // default: {...}. The scroll bar of the text (the params of ScrollBar)
	Key                    any    // default: "0"
	StyleName              string // default: "light" (the kit alone: "light"). "light", "dark", "modern" ("classic": its old name), "modernDark", "ozden", "ozdenDark", "minimal", "minimalDark" or a name added to TextField.styles
	Width                  any    // default: 350
	LeftPadding            any    // default: 20
	TitleFontSize          any    // default: 16
	InputFontSize          any    // default: 20
	InputHeight            any    // default: 40. px: the row of the text
	FieldPadding           any    // default: 14. px: over and under the title and the text (titlePosition "inside")
	DescriptionFontSize    any    // default: 14
	TitlePosition          string // default: "inside". "inside": the title in the field, over the text. "above": the title over the field (the field is only the row of the text). (Only at create time)
	TitleGap               any    // default: 4. px between the title and the field (titlePosition "above")
	Value                  any    // default: ""
	ShowDescription        any    // default: 0
	DescriptionText        string // default: ""
	AllowHtml              any    // default: 0. 1: titleText, descriptionText and unitText are HTML (only for your own texts)
	BackgroundColor        string // default: "#F6F6F6"
	FocusBackgroundColor   string // default: "#F3F4E0"
	HoverBackgroundColor   string // default: "". the field under the mouse (not while it is selected). "": no change
	LineColor              string // default: "#373836"
	FocusLineColor         string // default: "#65A293"
	BackBorderColor        any    // default: Black(0)
	FocusBackBorderColor   any    // default: Black(0)
	HoverBackBorderColor   string // default: "". the edge under the mouse (not while it is selected). "": no change
	BackBorderTopRound     any    // default: 2
	BackBorderBottomRound  any    // default: 0
	TitleTextColor         string // default: "#555555"
	TitleBold              any    // default: 0. 1: the title in bold (opensans-bold)
	TitleLetterSpacing     string // default: "". "": normal. Ex: "0.06em"
	InputTextColor         string // default: "#373836"
	InputColorScheme       string // default: "". "": the page's. "dark": the autofill colors of the browser stay dark (on a dark field)
	PlaceholderColor       string // default: "". "": the color of the browser
	DescriptionTextColor   string // default: "#999999"
	WarningBallBorderColor string // default: "#373836"
	RequiredText           string // default: "Required"
	RequiredColor          string // default: "white"
	AnimatedWarningBall    any    // default: 1
	WarningBallType        string // default: "color". "color": colored ball, "icon": icon image
	WarningBallSize        any    // default: 16. px: the colored ball (warningBallType "color")
	WarningBallBorder      any    // default: 2. px: the edge of the colored ball (warningBallBorderColor)
	WarningBorderColor     string // default: "". the edge of the field while it shows a warning (not while typing). "": no change
	WarningIconSize        any    // default: 20
	RequiredIconFile       string // default: "". image path or data URI. "": built-in icon
	WarningIconFile        string // default: "". image path or data URI. "": built-in icon
	RequiredIconColor      string // default: "#373836". built-in required icon color (built-in warning icon uses warningColor)
	TooltipStyle           P      // default: {...}
	SelectStyle            P      // default: {...}
	ShowLeftBox            any    // default: 0
	ShowRightBox           any    // default: 0
	ShowUnit               any    // default: 0
	CreateInput            any    // default: 1
	UnitText               string // default: ""
	OnFocus                any    // default: a function
	OnBlur                 any    // default: a function
	OnChange               any    // default: a function. the user changed the text (not at create time, not by setValue())

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Style    P // keys of its look, over its package: ozdenui.P{"box": ozdenui.P{"round": 12}}
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

TextAreaFieldProps are the params of a TextAreaField, by their names in the kit (comp/text-area-field.js). A param that is not given keeps the default written next to it.

type TextFieldProps

type TextFieldProps struct {
	Key                    any    // default: "0"
	StyleName              string // default: "light" (the kit alone: "light"). "light", "dark", "modern" ("classic": its old name), "modernDark", "ozden", "ozdenDark", "minimal", "minimalDark" or a name added to TextField.styles
	Type                   string // default: "text"
	Width                  any    // default: 350
	Height                 any    // default: "auto"
	LeftPadding            any    // default: 20
	RightPadding           any    // default: 60
	TitleFontSize          any    // default: 16
	InputFontSize          any    // default: 20
	InputHeight            any    // default: 40. px: the row of the text
	FieldPadding           any    // default: 14. px: over and under the title and the text (titlePosition "inside")
	DescriptionFontSize    any    // default: 14
	TitlePosition          string // default: "inside". "inside": the title in the field, over the text. "above": the title over the field (the field is only the row of the text). (Only at create time)
	TitleGap               any    // default: 4. px between the title and the field (titlePosition "above")
	TitleText              string // default: "" (the kit alone: "INPUT NAME")
	Placeholder            string // default: "" (the kit alone: "input value")
	Value                  any    // default: ""
	MaxLength              any    // default: 1000 (the kit alone: 30)
	ShowDescription        any    // default: 0
	DescriptionText        string // default: ""
	AllowHtml              any    // default: 0. 1: titleText, descriptionText and unitText are HTML (only for your own texts)
	BackgroundColor        string // default: "#F6F6F6"
	FocusBackgroundColor   string // default: "#F3F4E0"
	HoverBackgroundColor   string // default: "". the field under the mouse (not while it is selected). "": no change
	LineColor              string // default: "#373836"
	FocusLineColor         string // default: "#65A293"
	BackBorderColor        any    // default: Black(0)
	FocusBackBorderColor   any    // default: Black(0)
	HoverBackBorderColor   string // default: "". the edge under the mouse (not while it is selected). "": no change
	BackBorderTopRound     any    // default: 2
	BackBorderBottomRound  any    // default: 0
	TitleTextColor         string // default: "#555555"
	TitleBold              any    // default: 0. 1: the title in bold (opensans-bold)
	TitleLetterSpacing     string // default: "". "": normal. Ex: "0.06em"
	InputTextColor         string // default: "#373836"
	InputColorScheme       string // default: "". "": the page's. "dark": the autofill colors of the browser stay dark (on a dark field)
	PlaceholderColor       string // default: "". "": the color of the browser
	DescriptionTextColor   string // default: "#999999"
	WarningBallBorderColor string // default: "#373836"
	Required               any    // default: 0 (the kit alone: 0)
	RequiredText           string // default: "Required"
	RequiredColor          string // default: "white"
	WarningText            string // default: "Invalid value format"
	WarningColor           string // default: "#E5885E"
	AnimatedWarningBall    any    // default: 1
	WarningBallType        string // default: "color". "color": colored ball, "icon": icon image
	WarningBallSize        any    // default: 16. px: the colored ball (warningBallType "color")
	WarningBallBorder      any    // default: 2. px: the edge of the colored ball (warningBallBorderColor)
	WarningBorderColor     string // default: "". the edge of the field while it shows a warning (not while typing). "": no change
	WarningIconSize        any    // default: 20
	RequiredIconFile       string // default: "". image path or data URI. "": built-in icon
	WarningIconFile        string // default: "". image path or data URI. "": built-in icon
	RequiredIconColor      string // default: "#373836". built-in required icon color (built-in warning icon uses warningColor)
	TooltipStyle           P      // default: {...}
	SelectStyle            P      // default: {...}
	ShowLeftBox            any    // default: 0
	ShowRightBox           any    // default: 0
	ShowUnit               any    // default: 0
	CreateInput            any    // default: 1
	UnitText               string // default: ""
	UnitStyle              P      // default: {...}
	OnFocus                any    // default: a function
	OnBlur                 any    // default: a function
	OnChange               any    // default: a function. the user changed the text (not at create time, not by setValue())

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Style    P // keys of its look, over its package: ozdenui.P{"box": ozdenui.P{"round": 12}}
	Visible  any
	Opacity  any
	OnEnter  any  // the Enter key: func() or func(field *ozdenui.Object)
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

TextFieldProps are the params of a TextField, by their names in the kit (comp/text-field.js). A param that is not given keeps the default written next to it.

type TimeLineProps

type TimeLineProps struct {
	Key            any    // default: "0"
	Width          any    // default: 320. A number or "100%". (The height always grows with the items.)
	Items          any    // default: []. [{ time, text, description, color, key, data }] or ["Order created"]
	ItemGap        any    // default: 20. Space between two items. (The line is drawn in it.)
	DotSize        any    // default: 12
	LineWidth      any    // default: 2
	ShowLine       any    // default: 1. 0: Only the dots.
	ClickableItems any    // default: 0. 1: An item can be clicked. (onClick)
	Enabled        any    // default: 1
	OnClick        any    // default: a function
	StyleName      string // default: "light". "light", "dark", "minimal", "minimalDark" or a name added to TimeLine.styles
	Style          P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Height   any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

TimeLineProps are the params of a TimeLine, by their names in the kit (comp/time-line.js). A param that is not given keeps the default written next to it.

type TimePickerProps

type TimePickerProps struct {
	Key             any    // default: "0"
	Width           any    // default: 160. Field width (not used if inline: 1)
	Height          any    // default: 44. Field height (not used if inline: 1)
	Time            any    // default: null. "HH:mm", Date or null
	MinTime         any    // default: null. "HH:mm" or null
	MaxTime         any    // default: null. "HH:mm" or null. If it is smaller than minTime, the range goes over midnight.
	MinuteStep      any    // default: 5. 1, 5, 10, 15, 30...
	Format          string // default: "HH:mm". Tokens: HH, H, hh, h, mm, A (AM/PM), a (am/pm)
	Language        string // default: "en". "en", "tr"
	Placeholder     string // default: "". Empty: uses the language text
	Inline          any    // default: 0. 1: Panel is always visible, no field.
	Enabled         any    // default: 1
	CloseOnSelect   any    // default: 1. 1: Close after a minute is selected.
	UseScrollBar    any    // default: 1. basic/scroll-bar.js. 0: the scrollbar of the browser.
	ShowNowButton   any    // default: 1
	ShowClearButton any    // default: 1
	OnChange        any    // default: a function. self.value ("19:30" or ""), self.hours, self.minutes (number or null), self.timeText
	OnOpen          any    // default: a function
	OnClose         any    // default: a function
	StyleName       string // default: "light". "light" ("classic": its old name), "dark", "minimal", "minimalDark" or a name added to TimePicker.styles
	Style           P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

TimePickerProps are the params of a TimePicker, by their names in the kit (comp/time-picker.js). A param that is not given keeps the default written next to it.

type TinySelectProps

type TinySelectProps struct {
	TitleText            string // default: ""
	List                 any    // default: []. [{ value: "1", label: "(none)" },]
	OnChange             any    // default: a function. Another item is chosen: self.selectedIndex, self.getSelectedItem() ({ value, label }). Not at create time; setSelectedIndex(index) calls it, setSelectedIndex(index, 1) does not.
	SelectedIndex        any    // default: 0
	FontSize             any    // default: 20
	Border               any    // default: 0
	Color                string // default: "transparent". "whitesmoke"
	Round                any    // default: 3
	Width                any    // default: "auto"
	Height               any    // default: 50
	PaddingX             any    // default: 12
	Enabled              any    // default: 1. 0: it can not be opened, a little transparent (setEnabled)
	ArrowIconFile        string // default: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xml...
	ArrowBorder          any    // default: 0. 1
	ArrowBorderColor     string // default: "rgba(0, 0, 0, 0.2)"
	ArrowBackgroundColor string // default: "transparent". "white"
	ArrowRound           any    // default: 3. 30
	ArrowSize            any    // default: 24
	ListFontSize         any    // default: 14
	ListTextColor        string // default: "rgba(0, 0, 0, 0.8)"
	ListOverTextColor    string // default: "indianred"
	ListBackgroundColor  string // default: "whitesmoke"
	ListBorder           any    // default: 1
	ListBorderColor      string // default: "rgba(0, 0, 0, 0.6)"
	EmptyText            string // default: "Empty"
	AllowHtml            any    // default: 0. 1: titleText, emptyText and the labels of the list are HTML (only for your own texts)
	InvertIconColor      any    // default: 0
	LabelBold            any    // default: 1
	LabelTextColor       string // default: "rgba(0,0,0,0.8)"

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	StyleName string // the package of its look (see the function)
	Style     P      // keys of its look, over its package: ozdenui.P{"box": ozdenui.P{"round": 12}}
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

TinySelectProps are the params of a TinySelect, by their names in the kit (comp/tiny-select.js). A param that is not given keeps the default written next to it.

type TinyTableProps

type TinyTableProps struct {
	Width        any    // default: "auto". As wide as the columns
	Height       any    // default: "auto"
	Columns      any    // default: []. [{ title, width (px), align: "left" | "center" | "right" }]
	Rows         any    // default: []. [["text", "text", ...], ...]
	BodyHeight   any    // default: "auto". "auto" or a number: the rows scroll
	AllowHtml    any    // default: 0. 1: the titles and the cells are HTML (only for your own texts)
	OnCellCreate any    // default: a function. cell.rowIndex, cell.columnIndex, cell.value, cell.label (Ex: cell.label.bold = 1)
	OnRowClick   any    // default: a function
	StyleName    string // default: "classic". "classic", "light", "dark" or a name added to TinyTable.styles
	Style        P      // default: {...}. Classic style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

TinyTableProps are the params of a TinyTable, by their names in the kit (comp/tiny-table.js). A param that is not given keeps the default written next to it.

type ToggleProps

type ToggleProps struct {
	Key             any    // default: "0"
	Width           any    // default: 70. Standard box features are added automatically.
	Height          any    // default: 40
	Spacing         any    // default: 3. px: between the track and the knob
	Value           any    // default: 0
	InvertColor     any    // default: 0
	OffButtonScale  any    // default: 0.6. The size of the knob when off. (1: the same size as on)
	OnMark          any    // default: a function. Shows when on: "check", "cross" or a text ("ON"). "": nothing
	OffMark         string // default: "". Shows when off
	MarkPlace       string // default: "track". "track": on the free side of the track, "knob": in the knob (Only at create time)
	Animated        any    // default: 1. 1: small motions of a toggle with marks. (box.setAnimated(0/1))
	FocusRingColor  string // default: "". the ring of the keyboard focus. "": the ring of basic.js
	MarkStyle       P      // default: {...}
	OnChange        any    // default: a function. self.value changed (a click, a key, setValue()). Not at create time, not with setValue(value, 1)
	BackgroundStyle P      // default: {...}. The track
	ButtonStyle     P      // default: {...}. The knob
	StyleName       string // default: "ozden". "ozden", "ozdenDark", "light", "dark", "classic", "float", "round", "slim", "outline", "square", "tick", "badge", "label", "minimal", "minimalDark" or a name added to Toggle.styles
	Style           P      // default: {}. WHY: the look is in the params above; the packages are packages of params (see Toggle.styles).

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

ToggleProps are the params of a Toggle, by their names in the kit (comp/toggle.js). A param that is not given keeps the default written next to it.

type ToolBarProps

type ToolBarProps struct {
	Key       any    // default: "0". Your name for this object: read it in a callback (self.key)
	Left      any    // default: 0
	Top       any    // default: 0
	Width     any    // default: "100%"
	Height    any    // default: 42
	Shrink    any    // default: 0 (the kit alone: 0). WHY: In a full group its row must not get thinner: its height is its buttons.
	Items     any    // default: []. [ITEM] (See AN ITEM above)
	Enabled   any    // default: 1
	AriaLabel string // default: "Tool bar"
	MoreText  string // default: "More". The name of the "..." button
	OnClick   any    // default: a function. An item (with a click, the keyboard, its shortcut or clickItem())
	StyleName string // default: "light". "light", "dark", "minimal", "minimalDark" or a name added to ToolBar.styles
	Style     P      // default: {...}. Light style package (default)

	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

ToolBarProps are the params of a ToolBar, by their names in the kit (comp/tool-bar.js). A param that is not given keeps the default written next to it.

type TooltipProps

type TooltipProps struct {
	Target         any    // default: null
	HintText       string // default: ""
	HintPosition   string // default: "top". "top", "left", "bottom", "right"
	LblFontSize    any    `ui:"lbl_fontSize"`    // default: 12
	LblSpaceX      any    `ui:"lbl_spaceX"`      // default: 8
	LblSpaceY      any    `ui:"lbl_spaceY"`      // default: 3
	LblColor       string `ui:"lbl_color"`       // default: "rgba(255, 255, 255, 0.90)"
	LblTextColor   string `ui:"lbl_textColor"`   // default: "rgba(0, 0, 0, 0.85)"
	LblRound       any    `ui:"lbl_round"`       // default: 3
	LblBorder      any    `ui:"lbl_border"`      // default: 1
	LblBorderColor string `ui:"lbl_borderColor"` // default: "rgba(0, 0, 0, 0.9)"
	LblArrow       any    `ui:"lbl_arrow"`       // default: 0. px: the side of the arrow (0: no arrow)
	Content        any    // default: null. function (bubble): its own objects in the bubble, in place of hintText
	Trigger        string // default: "hover". "hover": it follows the mouse; "click": a popover (it stays, its content can be clicked)
	Look           any    // default: null. Tooltip.BUBBLE_LOOK keys over the lbl_ ones (Ex: { shadow, padding: [16, 14], contentGap })
	StyleName      string // default: "". a look of Tooltip.looks under look ("minimal", "minimalDark"). "": the lbl_ params
	Scale          any    // default: null. every size of the bubble multiplied (Ex: 1.5); null: basic.uiScale when the bubble opens
	Visible        any    // default: 0

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Width    any // 120, "100%", "auto"
	Height   any
	Style    P // keys of its look, over its package: ozdenui.P{"box": ozdenui.P{"round": 12}}
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

TooltipProps are the params of a Tooltip, by their names in the kit (comp/tooltip.js). A param that is not given keeps the default written next to it.

type TreeViewProps

type TreeViewProps struct {
	Key                 any    // default: "0"
	Width               any    // default: 260
	Height              any    // default: 320. "auto": no scrolling, the tree grows with its rows.
	Items               any    // default: []. [NODE] (See NODE above)
	Value               any    // default: null. Key of the selected node. null: nothing is selected.
	EmptyText           string // default: "No items"
	TypeAhead           any    // default: 1. 1: Typing a letter jumps to the next row that starts with it.
	UseScrollBar        any    // default: 1. basic/scroll-bar.js (when it is loaded). 0: the scrollbar of the browser.
	Enabled             any    // default: 1
	AriaLabel           string // default: "Tree"
	OnSelect            any    // default: a function. self.value, self.previousValue
	OnActivate          any    // default: a function. Double click or Enter (event.type: "dblclick" or "keydown")
	ToggleOnDoubleClick any    // default: 1. 0: a double click does not open / close the row (Ex: it renames it)
	OnToggle            any    // default: a function. node.expanded: 1 or 0
	OnHover             any    // default: a function. node: null when the mouse leaves the rows
	OnLoadChildren      any    // default: a function. hasChildren: 1 and no children. Call self.setChildren(node.key, [...]).
	StyleName           string // default: "light". "light" ("classic": its old name), "modern", "dark", "minimal", "minimalDark" or a name added to TreeView.styles
	Style               P      // default: {...}. Light style package (default)

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Visible  any
	Opacity  any
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

TreeViewProps are the params of a TreeView, by their names in the kit (comp/tree-view.js). A param that is not given keeps the default written next to it.

type UrlFieldProps

type UrlFieldProps struct {
	Width                  any    // default: 400
	Required               any    // default: 0 (the kit alone: 1)
	TitleText              string // default: "" (the kit alone: "URL")
	Placeholder            string // default: "example.com"
	WarningText            string // default: "Invalid URL format"
	WarningColor           string // default: "#E5885E"
	MaxLength              any    // default: 2048 (the kit alone: 255)
	RightPadding           any    // default: 20
	TinySelectParams       P      // default: {...}
	Key                    any    // default: "0"
	StyleName              string // default: "light" (the kit alone: "light"). "light", "dark", "modern" ("classic": its old name), "modernDark", "ozden", "ozdenDark", "minimal", "minimalDark" or a name added to TextField.styles
	Type                   string // default: "text"
	Height                 any    // default: "auto"
	LeftPadding            any    // default: 20
	TitleFontSize          any    // default: 16
	InputFontSize          any    // default: 20
	InputHeight            any    // default: 40. px: the row of the text
	FieldPadding           any    // default: 14. px: over and under the title and the text (titlePosition "inside")
	DescriptionFontSize    any    // default: 14
	TitlePosition          string // default: "inside". "inside": the title in the field, over the text. "above": the title over the field (the field is only the row of the text). (Only at create time)
	TitleGap               any    // default: 4. px between the title and the field (titlePosition "above")
	Value                  any    // default: ""
	ShowDescription        any    // default: 0
	DescriptionText        string // default: ""
	AllowHtml              any    // default: 0. 1: titleText, descriptionText and unitText are HTML (only for your own texts)
	BackgroundColor        string // default: "#F6F6F6"
	FocusBackgroundColor   string // default: "#F3F4E0"
	HoverBackgroundColor   string // default: "". the field under the mouse (not while it is selected). "": no change
	LineColor              string // default: "#373836"
	FocusLineColor         string // default: "#65A293"
	BackBorderColor        any    // default: Black(0)
	FocusBackBorderColor   any    // default: Black(0)
	HoverBackBorderColor   string // default: "". the edge under the mouse (not while it is selected). "": no change
	BackBorderTopRound     any    // default: 2
	BackBorderBottomRound  any    // default: 0
	TitleTextColor         string // default: "#555555"
	TitleBold              any    // default: 0. 1: the title in bold (opensans-bold)
	TitleLetterSpacing     string // default: "". "": normal. Ex: "0.06em"
	InputTextColor         string // default: "#373836"
	InputColorScheme       string // default: "". "": the page's. "dark": the autofill colors of the browser stay dark (on a dark field)
	PlaceholderColor       string // default: "". "": the color of the browser
	DescriptionTextColor   string // default: "#999999"
	WarningBallBorderColor string // default: "#373836"
	RequiredText           string // default: "Required"
	RequiredColor          string // default: "white"
	AnimatedWarningBall    any    // default: 1
	WarningBallType        string // default: "color". "color": colored ball, "icon": icon image
	WarningBallSize        any    // default: 16. px: the colored ball (warningBallType "color")
	WarningBallBorder      any    // default: 2. px: the edge of the colored ball (warningBallBorderColor)
	WarningBorderColor     string // default: "". the edge of the field while it shows a warning (not while typing). "": no change
	WarningIconSize        any    // default: 20
	RequiredIconFile       string // default: "". image path or data URI. "": built-in icon
	WarningIconFile        string // default: "". image path or data URI. "": built-in icon
	RequiredIconColor      string // default: "#373836". built-in required icon color (built-in warning icon uses warningColor)
	TooltipStyle           P      // default: {...}
	SelectStyle            P      // default: {...}
	ShowLeftBox            any    // default: 0
	ShowRightBox           any    // default: 0
	ShowUnit               any    // default: 0
	CreateInput            any    // default: 1
	UnitText               string // default: ""
	UnitStyle              P      // default: {...}
	OnFocus                any    // default: a function
	OnBlur                 any    // default: a function
	OnChange               any    // default: a function. the user changed the text (not at create time, not by setValue())

	Left     any // with Top: a place of its own in a Box or on the page
	Top      any
	Style    P // keys of its look, over its package: ozdenui.P{"box": ozdenui.P{"round": 12}}
	Visible  any
	Opacity  any
	OnEnter  any  // the Enter key: func() or func(field *ozdenui.Object)
	Fill     bool // it takes the room the other objects of its group leave
	Unframed bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra    P    // any other value, by its name in the kit
}

UrlFieldProps are the params of a UrlField, by their names in the kit (comp/url-field.js). A param that is not given keeps the default written next to it.

type WebViewProps

type WebViewProps struct {
	Key            any    // default: "0"
	Width          any    // default: 400
	Height         any    // default: 300
	Url            string // default: "". "": Nothing is loaded (placeholder is shown)
	HtmlText       string // default: "". HTML text instead of a URL (srcdoc). NOTE: Not "html": that is the innerHTML setter of a basic.js Box.
	AriaLabel      string // default: "Web view". the name a screen reader says (the title of the iframe)
	Sandbox        any    // default: null. null: No sandbox. Ex: "allow-scripts allow-same-origin allow-forms allow-popups"
	Allow          string // default: "". Ex: "fullscreen; clipboard-write"
	ReferrerPolicy string // default: "". Ex: "no-referrer"
	Lazy           any    // default: 0. 1: The browser loads the page when the box is near the screen. (loading="lazy")
	Scale          any    // default: 1. 0.5: The page is shown at half size (scaled preview). NOTE: Not "zoom": basic.js uses it for the page.
	Interactive    any    // default: 1. 0: The page can not be clicked or scrolled. (Preview)
	AutoHeight     any    // default: 0. 1: The box height follows the page height. (Same origin pages only)
	Toolbar        any    // default: 0. 1: A bar with the URL, reload and "open in a new tab" buttons (Only at create time)
	ShowLoading    any    // default: 1. 1: Spinner until the page is loaded
	EmptyText      string // default: "No page". Shown when nothing is loaded
	LoadTimeout    any    // default: 0. Seconds. 0: No timeout. Ex: 15 -> onTimeout is called when the page is not loaded in 15 seconds.
	OnLoad         any    // default: a function
	OnError        any    // default: a function. Same origin URL of load() that could not be loaded (the browser shows its error page)
	OnTimeout      any    // default: a function
	OnMessage      any    // default: a function. Messages from the page (window.parent.postMessage)
	OnClick        any    // default: a function. interactive: 0 -> click on the cover
	Style          P      // default: {...}

	Left      any // with Top: a place of its own in a Box or on the page
	Top       any
	StyleName string // the package of its look (see the function)
	Visible   any
	Opacity   any
	Fill      bool // it takes the room the other objects of its group leave
	Unframed  bool // no border and no rounded corners on its box (it fills the room between two bars)
	Extra     P    // any other value, by its name in the kit
}

WebViewProps are the params of a WebView, by their names in the kit (comp/web-view.js). A param that is not given keeps the default written next to it.

type Window

type Window struct {
	Title  string // "OzdenUI" when empty
	Width  int    // 800 when 0
	Height int    // 600 when 0
	// Theme: "light" (default), "dark" or "auto" (what the system asks). In a dark window every component takes its
	// dark look unless it is given another one, and the plain objects and the page are dark too.
	Theme string
	// Style: "" (the usual looks) or "minimal": small and made of lines, for the components that have it.
	Style string
	// Accent: a color of the minimal look ("#2A78D6"): an on toggle, a checked box, the selected tab and the main
	// button (SmartButton with Tone: "accent") take it. AccentDark: its color in a dark window ("": made from Accent).
	Accent     string
	AccentDark string
	// Language: the language of the texts of the window ("en" when empty; "tr", "de"...). The page writes capital
	// letters, breaks words and sorts by it: a table title in Turkish is "SİPARİŞLER" only with "tr".
	Language string
	// Debug: the developer tools of the web view (right click > Inspect).
	Debug bool
}

Window is how the window opens: ozdenui.Run(start, ozdenui.Window{Title: "Counter", Width: 400, Height: 300})

Directories

Path Synopsis
checks
window-check command
The check of a real window: it writes the size the page sees into $PROBE_REPORT and closes itself when PROBE_CLOSE=1.
The check of a real window: it writes the size the page sees into $PROBE_REPORT and closes itself when PROBE_CLOSE=1.
cmd
ozdenui command
examples
basics command
The basic objects: a Box, an Icon, a Label, an Input and a Button, each in a place of its own.
The basic objects: a Box, an Icon, a Label, an Input and a Button, each in a place of its own.
calculator command
A calculator: the keys stand in a GridGroup.
A calculator: the keys stand in a GridGroup.
charts command
Charts with no other library: a live line, bars with a format, a doughnut, two lines with a target.
Charts with no other library: a live line, bars with a format, a doughnut, two lines with a target.
chat command
A chat with an AI that is only a sample: for every message it writes a small plan, word by word, as an AI that streams its answer does (in a goroutine, so the window keeps working).
A chat with an AI that is only a sample: for every message it writes a small plan, word by word, as an AI that streams its answer does (in a goroutine, so the window keeps working).
clock command
A clock and a stopwatch: ui.Every() runs a function again and again (the loop() of basic.js).
A clock and a stopwatch: ui.Every() runs a function again and again (the loop() of basic.js).
counter command
A counter: a label and two buttons.
A counter: a label and two buttons.
csv-viewer command
A CSV file in a table: open one (a sample is shown first), filter it, click a row to see it.
A CSV file in a table: open one (a sample is shown first), filter it, click a row to see it.
dialogs command
The dialogs: each one returns its answer (the code waits; the window keeps working meanwhile).
The dialogs: each one returns its answer (the code waits; the window keeps working meanwhile).
editor command
A small code editor: write Python, run it (F5) and read its output.
A small code editor: write Python, run it (F5) and read its output.
form command
A form: fields of text, a date, a time, a color, a number.
A form: fields of text, a date, a time, a color, a number.
gallery command
The gallery: the main components on one page, in two columns of cards.
The gallery: the main components on one page, in two columns of cards.
game command
Catch the dots: move the square with the arrow keys and touch the dot before the time is over.
Catch the dots: move the square with the arrow keys and touch the dot before the time is over.
greeting command
A TextField read in Go: name.Text() is always the text on the page.
A TextField read in Go: name.Text() is always the text on the page.
image-viewer command
A place to look at a picture: open a file, or draw a plot again and again: the zoom and the place stay.
A place to look at a picture: open a file, or draw a plot again and again: the zoom and the place stay.
job-log command
A job in the background and its output in the window: a goroutine, ui.Do() and the levels of a LogView.
A job in the background and its output in the window: a goroutine, ui.Do() and the levels of a LogView.
json-viewer command
A small JSON viewer: open a file, click a row to see its path, right click to copy its value or its path.
A small JSON viewer: open a file, click a row to see its path, right click to copy its value or its path.
markdown-editor command
A small Markdown editor: write on the left, read on the right.
A small Markdown editor: write on the left, read on the right.
minimal-theme command
The minimal look of every component that has it, on one page: ui.Window{Style: "minimal"}.
The minimal look of every component that has it, on one page: ui.Window{Style: "minimal"}.
notes command
Notes: the program of the rules for an AI assistant (cmd/ozdenui/AGENTS.md).
Notes: the program of the rules for an AI assistant (cmd/ozdenui/AGENTS.md).
settings command
Settings on three tabs.
Settings on three tabs.
todo command
A to-do list: add a task (Enter or the button), tick the done ones, delete them (with a question).
A to-do list: add a task (Enter or the button), tick the done ones, delete them (with a question).
internal
gen command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址