0

How can i get the portion of Label value [closed]

asked 2018-03-06 19:56:04 +0800

eguvenc gravatar image eguvenc
18 3

hi, i want to get part of a Label value in zk. For example the Label value is "Anyone help me!" and i want to get some part of this text when i select it with eventListener onSelect, onDoubleClick or etc. Is someone help me.

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by hawk
close date 2018-03-08 12:59:47

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-03-07 15:02:05 +0800

eguvenc gravatar image eguvenc
18 3

Thank you for your response it was very usefull. In the same example for the "onDoubleClick" event, which way should i follow.

link publish delete flag offensive edit

Comments

If you double click the text, you will select a word which also triggers a selectionchange event. So the same example also works.

hawk ( 2018-03-07 15:17:51 +0800 )edit

I am sorry i had not tried it in browser, i tried it on Eclipse browser. So it is working in any web browser thank you.

eguvenc ( 2018-03-07 16:44:50 +0800 )edit
1
link publish delete flag offensive edit

Comments

updated my code a bit, using addEventListener()

hawk ( 2018-03-07 15:15:57 +0800 )edit

Question tools

Follow

RSS

Stats

Asked: 2018-03-06 19:56:04 +0800

Seen: 16 times

Last updated: Mar 07 '18

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More