You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: shared/ScriptUI.d.ts
+51Lines changed: 51 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2110,6 +2110,43 @@ declare class Panel extends _Control {
2110
2110
remove(what: any): void
2111
2111
}
2112
2112
2113
+
/**
2114
+
* A container for other types of controls.
2115
+
* Differs from a panel element in that is must be a direct child of a tabbedpanel element, the title is shown in the selection tab, and it does not have a script-definable border.
2116
+
*/
2117
+
declareclassTabextendsPanel{
2118
+
/**
2119
+
* The parent element.
2120
+
*/
2121
+
readonlyparent: TabbedPanel
2122
+
}
2123
+
2124
+
/**
2125
+
* A container for selectable tab containers.
2126
+
* Differs from a panel element in that it can contain only tab elements as direct children.
2127
+
*/
2128
+
declareclassTabbedPanelextendsPanel{
2129
+
/**
2130
+
* An array of child elements.
2131
+
*/
2132
+
readonlychildren: Tab[]
2133
+
2134
+
/**
2135
+
* The currently selected tab.
2136
+
* Setting this value causes the specified tab to be enabled in the panel.
2137
+
* You can set the value using the index of an item, rather than an object reference.
2138
+
* If set to an index value that is out of range, the operation is ignored.
2139
+
* When set with an index value, the property still returns an object reference.
2140
+
* When the value of the selection property changes, either by a user selecting a different tab, or by a script setting the property, the TabbedPanel receives an onChange notification.
2141
+
*/
2142
+
selection: Tab|number
2143
+
2144
+
/**
2145
+
* An event-handler callback function, called when the selected tab has changed.
2146
+
*/
2147
+
onChange(): void
2148
+
}
2149
+
2113
2150
/**
2114
2151
* Defines the location of a window or UI element. Contains a 2-element array.
2115
2152
* Specifies the origin point of an element as horizontal and vertical pixel offsets from the origin of the element's coordinate space.
0 commit comments