question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set ValueState Text

See original GitHub issue

Hi,

After searching the documentation, I didn’t find any way to modify the ValueState text (the text appearing when the ValueState is not None) for any controls.

First, is it possible to modify this text? And if so, how? If it’s not possible, can a ValueStateText property be added to do so?

Thanks! Mathieu

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ilhan007commented, May 18, 2020

Hello @mathlizee

Actually, you can use the “valueStateMessage” slot. The default text would not appear if the slot is set.

<ui5-input value-state="Error">
  <div slot="valueStateMessage">
     Information message. 
     This is a <a href="#">Link</a>. Extra long text used as an information message.
  </div>
</ui5-input>

What do you think?

0reactions
ilhan007commented, May 18, 2020

Hi @ilhan007, Why do you think that I can help here? I assume you mean somebody else.

Sorry, I wanted to tag somebody else

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting TextField Value State in "sap.ui.model.SimpleType ...
Label({ text : "Time" }) ) );. Here, by default I am setting ValueState of each TextField to "Error" so that each blank...
Read more >
Input - Value States - Samples - Demo Kit - SAPUI5 SDK
Extra long text used as a warning message - 5. Value State Warning. There is a conflict with the current value. Recommendation based...
Read more >
How to set ValueState of a TextField or a DropdownBox which ...
I played with an example and "wrapped" the text field, which I use as a table cell, in a vertical layout. By doing...
Read more >
Make React Input TextField Editable with value state and ...
https://codedocu.com/Software/React/Components/Make-React-Input-Editable?27531. Use defaultValue instead of value2. React TextField or Form ...
Read more >
Input - UI5 Web Components - SAP
Input with Value State ... <ui5-input id="value-state-suggestions" placeholder="Start typing country name" ... Extra long text used as an error message.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found