expandable item bug: sub items added twice
or-dvir opened this issue · 3 comments
or-dvir commented
zsmb13 commented
You don't need to attach the items inside the expandable drawer item yourself, they're automatically added:
expandableItem("Expandable drawer item", "Expandable drawer item description") {
iicon = FontAwesome.Icon.faw_heart
primaryItem("Expanded item 1") {
iicon = FontAwesome.Icon.faw_magic
level = 2
}
primaryItem("Expanded item 2") {
iicon = FontAwesome.Icon.faw_magic
level = 2
}
}
The example is from the sample app, specifically here.
or-dvir commented
thanks everything is fine now.
suggestion: not sure if it's possible due to this being a wrapper library, but maybe you can make functions that are not meant to be called by the user private
?
zsmb13 commented
This function has to be accessible so that custom drawer items can be added to the DSL. However, it's supposed to have a Deprecation warning so you don't use it accidentally. The warning was there in the library, just not everywhere - I'll fix this in the next release, thanks for finding it! :)