I’m trying to find a way to customize the LoadingIndicator…
I’ve well understood that this component is manage by the vaadin core itself and we don’t have a lot of control on it.
However, I’d like to improve the indicator with a text (“Page ‘Hello World’ Loading…”) in the middle of the bar (for the valo theme) or below the turning icon (standard theme)…
Is there a way to create this specific component and to set it in the UI (as we set the LoadingIndicatorConfiguration)?
Do you mean something like
$v-app-loading-text ? It’s defined as "
A static text which is shown under the initial loading spinner when the application assets are loaded by the browser. The default is an empty string. "
Yeah, that might be difficult. I’ve personally never done that using SCSS, but anything’s possible right? Not sure how viable that is, though. If it’s only the loading text, I gotta believe it’s doable. How many languages do you need to support?
(For more information regarding SCSS (or SASS more specifically), check out http://sass-lang.com/.)
It’s possible to make stylesheet dynamic and I can do it with PHP but with a preprocessor and a framework, I don’t know.
Actually we need 6 languages different but later, we aims a lot of languages.
Perhaps load a different stylesheet for each languages…
Ideally, you’d only have to set one variable. My initial idea was to add a style name to the UI class, and set the $v-app-loading-text variable based on that.
That didn’t work as v-loading-app is not a child of v-ui, and I wasn’t able to target v-app.