Hey I am trying to make the UI of notes app. Zepp os 1.0 #102
-
I wanted to limit the ustext to minimum 20 characters. I don't know how to do it. Can you help me. In simple words |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello, I am the creator of that app, if you like that I could suggest you this: |
Beta Was this translation helpful? Give feedback.
-
I am talking about the notes app from Amazfit gtr3 watch. But I don't think it's you by the name and I can guess your full name too your name would be flavio Juans am I right? And you are from Spain am I right? And you're from Madrid am I right ? |
Beta Was this translation helpful? Give feedback.
Hello, I am the creator of that app, if you like that I could suggest you this:
var longSPC = []
var ustext = "hello i am flvluju and i am helping you ertyer tr ertyer rety re e erty rety erty "
for(let i = 0; i <= ustext.length; i++){
//console.log(ustext.substring(i-1, i))
if(ustext.substring(i - 1, i) == " "){
console.log("spc")
longSPC.push(i)
console.log(longSPC)
console.log(longSPC.length)
if(longSPC.length == 20){
console.log("words limit")
}
}
}
just apply that on the code