Difference between revisions of "UI.Splitpane"
From GiderosMobile
 (Created page with "__NOTOC__ '''Available since:''' Gideros 2023.1<br/> '''Class:''' UI<br/>  === Description === Creates a Splitpane widget. <syntaxhighlight lang="lua"> UI.Splitpane.new(ve...")  | 
				|||
| Line 65: | Line 65: | ||
</syntaxhighlight>  | </syntaxhighlight>  | ||
| − | {{  | + | {{UI}}  | 
Latest revision as of 07:20, 17 October 2023
Available since: Gideros 2023.1
Class: UI
Description
Creates a Splitpane widget.
UI.Splitpane.new(vertical)
Parameters
vertical: (bool) is it a vertical Splitpane widget (default = false)
Example
local demo=UI.Builder({
	class=UI.Dialog,
	layoutModel=UI.Layout.Vertical,
	layout={fill=1},
	children={
		{ class=UI.Label, Text="Gideros WidgetKit demo" },
		{ class=UI.Label, Text="" },
		{ class=UI.Splitpane, Vertical=false, layout={ weighty=1, weightx=1, insetTop=16, insetBottom=16 },
			Tabs={.05,1,0.95},
			Ratio=.2,
			First={ --Left side
				class=UI.Viewport,
				layoutModel=UI.Layout.Vertical,
				layout={weightx=1,fill=1},
				children={
					{ class=UI.Label, Text="Multiline text:" },
					{ class=UI.Viewport, layout={weighty=2,fill=1},
						Content={
							class=UI.TextField,
							layout={fill=1},
							TextLayout={ flags=FontBase.TLF_TOP|FontBase.TLF_REF_TOP, multiline=true}
						},
					},
				},
			},
			Second={ --Right side
				class=UI.Panel,
				layoutModel=UI.Layout.Vertical,
				layout={weightx=1, fill=1},
				children={
					{ class=UI.Label, Text="Multiline text:" },
					{ class=UI.Viewport, layout={weighty=2,fill=1},
						Content={
							class=UI.TextField,
							layout={fill=1},
							TextLayout={ flags=FontBase.TLF_TOP|FontBase.TLF_REF_TOP, multiline=true}
						},
					},
				},
			},
		},
	}
})
	
local screen=UI.Screen.new()
screen:ui(demo)
UI.Style:setDefault(UI.Theme.PointCore_Base)
screen:updateStyle()
- UI.Accordion
 - UI.Animation
 - UI.Bar
 - UI.Behavior
 - UI.Border
 - UI.BreadCrumbs
 - UI.Builder
 - UI.Button
 - UI.Calendar
 - UI.Checkbox
 - UI.Combobox
 - UI.ImageText
 - UI.Keyboard
 - UI.Label
 - UI.Panel
 - UI.Progress
 - UI.Slider
 - UI.Spinner
 - UI.Splitpane
 - UI.TabbedPane
 - UI.Table
 - UI.TextField
 - UI.TimePicker
 - UI.Toolbox
 - UI.Tree
 - UI.Viewport
 - UI.WeekSchedule