You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was previously possible to add arbitrary properties to the macro objects, this seems to be broken after the 1.0.0 release.
Usecase: In the TrueCoach app we added groupHeader and summary properties to the macro objects so that we could show users what keyboard shortcuts are available and what they do, and store all of that information on the macro object itself.
This seems to no longer be possible since the Macro's constructor is manually setting only specific options that it expects.
A possible solution may be a meta property that can act as a grab-bag for additional user-land properties for the macro.
The text was updated successfully, but these errors were encountered:
steveszc
changed the title
1.0 (typescript??) broke the ability to add arbitrary properties to macros
1.0 broke the ability to add arbitrary properties to macros
Jan 6, 2021
I think either approach would be fine. Your suggestion would be nice since it keep compatibility with pre-1.x functionality. But I also like the explicitness of a meta property and the clear delineation it provides between the MacroOptions properties and custom properties.
It was previously possible to add arbitrary properties to the macro objects, this seems to be broken after the 1.0.0 release.
Usecase: In the TrueCoach app we added
groupHeader
andsummary
properties to the macro objects so that we could show users what keyboard shortcuts are available and what they do, and store all of that information on the macro object itself.This seems to no longer be possible since the Macro's constructor is manually setting only specific options that it expects.
ember-key-manager/addon/utils/macro.ts
Lines 28 to 51 in 591992f
A possible solution may be a
meta
property that can act as a grab-bag for additional user-land properties for the macro.The text was updated successfully, but these errors were encountered: