x4js 2.2.29 → 2.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -39,9 +39,11 @@ export interface PropertyValue {
|
|
|
39
39
|
value: IValue | IValueCB;
|
|
40
40
|
options?: ListItem[];
|
|
41
41
|
callback: ( name: string, value: any ) => void;
|
|
42
|
-
step?: number; // for numbers
|
|
43
42
|
live?: boolean; // for live update
|
|
44
43
|
cls?: string;
|
|
44
|
+
step?: number; // for numbers
|
|
45
|
+
min?: number;
|
|
46
|
+
max?: number;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
export interface PropertyGroup {
|
|
@@ -215,6 +217,8 @@ export class PropertyGrid extends VBox {
|
|
|
215
217
|
name: item.name,
|
|
216
218
|
value: String(value),
|
|
217
219
|
step: item.step,
|
|
220
|
+
min: item.min,
|
|
221
|
+
max: item.max,
|
|
218
222
|
focus: ( e: EvFocus ) => {
|
|
219
223
|
if( e.focus_out ) {
|
|
220
224
|
item.callback?.( item.name, (editor as Input).getNumValue() );
|