search

Home  >  Q&A  >  body text

javascript - Text click effect of Weex's <text>

The text in weex has no click effect by default. The official website has not found a way to obtain the press status. Is there anyone who can implement a function similar to Android's selector?

ringa_leeringa_lee2789 days ago610

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-05-19 10:35:24

    Don’t weex provide active pseudo-classes? You can set the css of click status

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-19 10:35:24

    Either you have a native developer partner and let him customize onecomponentfor you to use.

    https://weex.incubator.apache...


    Or you can implement it yourself using css

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-19 10:35:24

    I thought of a lucky method. The click event changes color and uses settimeout to delay the change back. This method is acceptable when the finger is not pressed and held intentionally. Hehe

    reply
    0
  • Cancelreply