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
In the references page, when hovering over functions that take an elementID as a parameter, it is shown that the type is a string. However, for some of these elementIDs, you either use groups or a function of the element itself, such as box(). This makes it unclear to the user because an elementID is not encapsulated by quotation marks and is usually an object you can see on the screen.
Potential Solution
Instead of having the attribute shown as a string, we can create a new attribute called elementID that shows a clear difference between a string and elements.
Additional Context
Most changes for this would be done in /src/myr/reference.js but one change for adding the elementID to the key in references would be done in /src/components/Reference.js
The text was updated successfully, but these errors were encountered:
rjmara
changed the title
parameters of type "elementID" in MYR are shown as strings
Parameters of type "elementID" in MYR are shown as strings
Aug 11, 2022
Description
In the references page, when hovering over functions that take an elementID as a parameter, it is shown that the type is a string. However, for some of these elementIDs, you either use groups or a function of the element itself, such as
box()
. This makes it unclear to the user because an elementID is not encapsulated by quotation marks and is usually an object you can see on the screen.Potential Solution
Instead of having the attribute shown as a string, we can create a new attribute called
elementID
that shows a clear difference between a string and elements.Additional Context
Most changes for this would be done in
/src/myr/reference.js
but one change for adding the elementID to the key in references would be done in/src/components/Reference.js
The text was updated successfully, but these errors were encountered: