Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Jul 29, 2023
1 parent 013a009 commit a4932d1
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions src/runtimePipelineYazzUiMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,31 +568,24 @@
return null
},
addControl: async function ( controlDetails ) {
/*
________________________________________
| addControl |
|______________________________________|
Adds a control to the page. eg:
await mm.addControl(
{
"leftX": 310,
"topY": 10,
"name": "mycontrol",
"base_component_id": "button_control"
})

This function really seems to be a helper function for the more complex
"addComponentV2" function
// Adds a control to the page. eg:
//
// await mm.addControl(
// {
// "leftX": 310,
// "topY": 10,
// "name": "mycontrol",
// "base_component_id": "button_control"
// "code_id": 0xff33...7b5
// })
//
// This function really seems to be a helper function for the more complex
// "addComponentV2" function

__________
| Params |
| |______________________________________________________________
|
| controlDetails:
|________________________________________________________________________ */
let mm = this
let newControl = await mm.addComponentV2( 10,
let newControl = await mm.addComponentV2(
10,
10,
{
base_component_id: controlDetails.base_component_id,
Expand Down

0 comments on commit a4932d1

Please sign in to comment.