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
defadd_tab(name,value)returnifname.nil?meta_data[name.to_sym] ||= {}meta_data[name].merge!(value.is_a?Hash ? value : {name.to_sym=>value})end
I was very confused when I added one tab called details and it appeared in the web view as CUSTOM.
It's not realy a issue since I will just wrap slimiar to what I did in my changes. I can open a PR if you are interested in the chang. I think it makes the api more unifor, therefor betterm. On the other hand it chages the behavour so someone might be supprces if it changes.
The text was updated successfully, but these errors were encountered:
Thanks for the feedback. We likely wouldn't accept a PR with your proposed suggestion at present due like you say to issues with other customers who may rely on the current behavior.
We plan to revisit this interface in the future and try to come up with a more consistent way of handling arrays being added to tabs though.
Description
I find the api to add_tab very strange. Why is there such a huge diffence between hashes and arrays?
The current codes looks like
I suggest
I was very confused when I added one tab called
details
and it appeared in the web view asCUSTOM
.It's not realy a issue since I will just wrap slimiar to what I did in my changes. I can open a PR if you are interested in the chang. I think it makes the api more unifor, therefor betterm. On the other hand it chages the behavour so someone might be supprces if it changes.
The text was updated successfully, but these errors were encountered: