on 07-13-2015 7:58 AM
Hi All,
I am been playing with UI5 from long time but stuck at this point.
I have a TextView placed inside VBox. I am using accessibleRole attribute based on API documentation.
The below code should marquee MyText. But its not working.
<VBox>
<sap.ui.commons:TextView text="MyText" accessibleRole="Marquee"></sap.ui.commons:TextView>
</VBox>
Is this a known bug or am I making any mistake ?
Please guide me.
that is accessible role for ARIA support, what do you expect to see?
as I can see
<commons:TextView text="MyText" width="500px" accessibleRole="Marquee"/>
generates
role="marquee" in DOM
so pretty much works as expcected
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am trying to Marquee MyText.
Based on Mozilla documentation, HTML <Marquee/> tag could be removed any time.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee
So Instead of using <Marquee/>
I am trying to Marquee TextView using attributes available in UI5.
Thanks
But of course, nothing stops you from creating a text marquee with CSS yourself, in just a few lines of code:
.marquee {
width: 450px;
overflow: hidden;
white-space: nowrap;
animation: marquee 50s linear infinite;
}
@keyframes marquee {
0% { text-indent: 2em }
100% { text-indent: -100em }
}
<Text text="Lorem ipsum dolor sit amet, consectetur adipiscing elit." setMaxLines="1" wrapping="false" class="marquee" />
However, you should consider if a marquee is really good UX. There is a reason they were in fashion in 1998 and out of fashion in 2001
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.