balloon.css | Simple tooltips made of pure CSS | Style Language library
kandi X-RAY | balloon.css Summary
kandi X-RAY | balloon.css Summary
Balloon.css: Simple tooltips made of pure CSS.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of balloon.css
balloon.css Key Features
balloon.css Examples and Code Snippets
Community Discussions
Trending Discussions on balloon.css
QUESTION
I am working on my form validation and I want to display different error message according to the error I get. I am using Silex
and Twig
with the translator component
and balloon.css
for the tooltip and it works so far.
Now I want to translate this error message according to the langage of my website and I have some trouble to do what I want.
Here is my code :
My form ...ANSWER
Answered 2018-Mar-05 at 16:11No, it's impossible to pass your variable from Javascript to Twig(PHP).
I would use https://github.com/willdurand/BazingaJsTranslationBundle to avoid using 2 different system of translation in your application.
This way you will have your javascript and your message in a same file.
If you really want to do it yourself, you can re-invent the wheel : it's just some text being replaced by another. Or you can find a javascript library.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install balloon.css
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page