Skip to content

Commit dbf0ab6

Browse files
committed
For custom function provide first one name for completion
1 parent 1582c47 commit dbf0ab6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Resources/scripts/custom-designer-functions.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,16 @@ customDesignerFunctions.getCustomFunctionsList = function () {
111111
});
112112
};
113113

114+
customDesignerFunctions.getFirstCustomFunctionName = function () {
115+
const list = Utils.customFunctionNames;
116+
if (list.length == 0) {
117+
console.log("not yey");
118+
return "ABS" // just none
119+
}
120+
list.sort();
121+
return list[0];
122+
};
123+
114124
customDesignerFunctions.fillWithArraySystemFonts = function () {
115125
return vp_fonts.map(val => { return { text: val, value: val }; });
116126
};

0 commit comments

Comments
 (0)