Skip to content

Commit

Permalink
Starting creating "edit" app property functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Oct 24, 2023
1 parent 1be4336 commit 28ba0b2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/runtimePipelineYazzUiMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,32 @@
let mm = this
mm.add_property = false
},
editAppProperty: function ( propertyToEdit ) {
//----------------------------------------------------------------------------------
//
// /-------------------------------------/
// / editAppProperty /
// /-------------------------------------/
//
//----------------------------------------------------------------------------
// This is called when the user presses "*" in the VB object inspector
// to edit a custom property / action
//--------------------------------------------------------------------

let mm = this

mm.add_property = false
mm.edit_property = true
mm.edit_property_id = propertyToEdit.id
mm.edit_property_name = propertyToEdit.name
mm.edit_property_type = propertyToEdit.type


setTimeout(function(){
let objDiv = document.getElementById("property_scroll_region");
objDiv.scrollTop = objDiv.scrollHeight;
},200)
},
recalcPossibleControlPropertyLinks: async function ( ) {

let mm = this
Expand Down Expand Up @@ -6431,6 +6457,12 @@ return {}
leftHandWidth: 130,
right_mode: "project",
add_property: false,
edit_property: false,
edit_property_id: null,
edit_property_name: "",
edit_property_type: "",
edit_property_snippet: "",
edit_property_help: "",
new_property_name: "",
new_property_id: "",
new_property_type: "",
Expand Down

0 comments on commit 28ba0b2

Please sign in to comment.