0

Change the class of an element (更改元素的class)

asked 2019-06-17 21:42:40 +0800

xuesong gravatar image xuesong
101 1

updated 2019-06-19 16:13:59 +0800

cor3000 gravatar image cor3000
4596 2 7
ZK Team

如何在Java后台更改控件的class

  1. 添加一个class值
  2. 删除一个class值
delete flag offensive retag edit

Comments

((Span)this.txtProjectid.getParent()).setSclass("ffffff");--该方法可将自定义的覆盖掉 ((Span)this.txtProjectid.getParent()).setZclass("ffffff");--该方法可将ZK内置的覆盖掉

xuesong ( 2019-06-18 08:58:11 +0800 )edit

this is an english forum, please try to ask your question in english, or provide at least a translation, so that others can search and join the discussion

cor3000 ( 2019-06-19 16:01:39 +0800 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-06-19 16:08:12 +0800

cor3000 gravatar image cor3000
4596 2 7
ZK Team

some related documentation:

Style customization guide on sclass / zclass

Related API docs (get/setSclass, get/setZclass)

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2019-06-17 21:42:40 +0800

Seen: 5 times

Last updated: Jun 19

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