Jump to content

API Component.Property.SetWritable: Difference between revisions

From Flowcode Help
No edit summary
No edit summary
Line 33: Line 33:
===Calling in a calculation===
===Calling in a calculation===
* Add to a calculation icon: <pre class="brush:[cpp]">::Component.Property.SetWritable(handle, "property", false)</pre>
* Add to a calculation icon: <pre class="brush:[cpp]">::Component.Property.SetWritable(handle, "property", false)</pre>
''<span style="color:red;">No additional examples</span>''

Revision as of 11:54, 16 January 2023

SetWritable
Sets whether the property can be edited in the UI or not 
- HANDLE Handle
The component handle of the property owner 
- STRING Property
The textual name of the property 
- BOOL Value
Set true or false for writable state 
- NONE Return


Detailed description

This call decides if the property, or any of its children if specifying a folder, are writable or not through the Properties Panel. This state may be read with GetWritable.

Examples

Calling in a calculation

  • Add to a calculation icon:
    ::Component.Property.SetWritable(handle, "property", false)