macros:active_binding
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
macros:active_binding [2017/11/22 08:05] – icke_siegen | macros:active_binding [2019/01/04 16:43] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
You will have noticed that the factory macros for palette fade time and palette overlap feature something special: if e.g. you fire the macro to set palette overlap to 50%, this macro handle (key or button) is highlighted as active until you set palette overlap to another value. In this case, this is very useful to always have an overview what values overlap and fade time are set to. | You will have noticed that the factory macros for palette fade time and palette overlap feature something special: if e.g. you fire the macro to set palette overlap to 50%, this macro handle (key or button) is highlighted as active until you set palette overlap to another value. In this case, this is very useful to always have an overview what values overlap and fade time are set to. | ||
- | Having a look into the code receals | + | Having a look into the code reveals |
<code xml> | <code xml> | ||
Line 19: | Line 19: | ||
''< | ''< | ||
- | A reasonable assumption for this to understand is: | + | You could read this as |
* bind the ' | * bind the ' | ||
Line 27: | Line 27: | ||
* a certain value, see '' | * a certain value, see '' | ||
- | At he moment, this is only listed here for information. There are a few potentially interesting aspects | + | Another - simpler - way would be to directly link to a property |
- | * this is, next to '' | + | |
- | * interesting syntax, with curly braces {} and propertyLink, | + | |
+ | ''< | ||
+ | |||
+ | In any case, **you can only bind to properties, not to functions**. | ||
+ | The active binding requires there to be a property, properties fire events | ||
+ | when they change which allow the UI to update. Generally the UI does not | ||
+ | continually call functions to get current values it depends on events to | ||
+ | allow it to update. (Gregory Haynes) | ||
+ | | ||
+ | //This is the reason why currently there is no way to use active binding to show whether a trigger mapping is enabled in [[macros: | ||
+ | |||
+ | Active binding is referred to in these examples: | ||
+ | |||
+ | {{backlinks> |
macros/active_binding.1511337913.txt.gz · Last modified: 2017/11/22 08:05 (external edit)