メインコンテンツまでスキップ

Section()

「詳細設定」のような、ユーザーが折りたためるタイトル付きの質問グループです。

コンストラクタ​

Section(title: string)
Section(title: string, collapsed: boolean)

パラメータ​

パラメータ型説明
titlestringセクションのタイトル
collapsedboolean省略可能。true にすると折りたたんだ状態で始まります

メソッド​

section:add(view): Section

質問、テキスト、コンテナをセクションに追加し、そのセクションをダイアログまたはページに追加します。

例​

local advanced = Section("Advanced", true)
advanced:add(Slider(6, "Delay (ms)", 0, 1000, 300):setStep(50))
Dialog:add(advanced)

注記​

  • 折りたたまれたセクションも対象です。中の回答必須の質問はOKをグレーのままにします。折りたたまれたセクションの質問にはデフォルト値を設定してください。