Thanks so much. i tried this "data-placeholder": "Placeholder value" earlier but it didnāt work (Phoenix 1.3). I will try the other option as well when i have a moment.
Hmm, I tried it here and it worked, Iām not sure why it would not work, what error?
Do note that atoms with underscores in the normal phoenix template stuff gets the underscores converted to dashes (Iām not sure how to prevent that actually), hence why data_placeholder: "Placeholder value" should work.
Pardon me please, i guess i didnāt take extra care in validating this. I once tried it today but for some reasons it didnāt work. However iāve tried it again and itās working fine. Also the first option you highlighted also work great too. Thank you so much!
Iām glad iāve learnt several ways to approach this! I really appreciate your time.
I imagine you do not know that the embedded format is, uh, letās say, very "ruby/rails"y (but I wonāt tell anyone you said it was āfascinatingā, do not fear)
Lol, well that format seems completely reasonable, just not immediately intuitive, though I would not expect it to add in a dash automatically but it does, soā¦ ^.^
I actually had to rewrite my own input for some things as I had to specify attributes that ādidā actually have underscores in them, that was a pain, I wish it did not do the auto-conversion since it is easy enough to just do something like "data-blah_bloop": ... anyway. ^.^;