0

Can't change a widget XHTML id

asked 2010-08-24 14:36:57 +0800

90simone90 gravatar image 90simone90
9

Hi, I'm using ZK from a few days and I'm facing a problem.
I don't know if it's actually a bug or if it's my fault (I think it's the second), but I can't change the widgets id.
For example the following code:

<window id="aWindow"/>

will produce an XHTML with auto-generated id like: z_d__b1

Thanks for help and sorry for my english and for this probably stupid question!

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-08-24 14:45:27 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

Every component with an id has a GUUID generated for it. Why do you want to change your window's id?

link publish delete flag offensive edit

answered 2010-08-24 14:47:43 +0800

90simone90 gravatar image 90simone90
9

Really I need to change the id of elements like input text, div and so on to use an existing stylesheet!

link publish delete flag offensive edit

answered 2010-08-24 14:58:19 +0800

90simone90 gravatar image 90simone90
9

I've also tried to change the id defined in the css to match the GUIID of the widget, but then I've add another widget before it and the first widget's GUUID is obviously changed!
So I don't understand how it's possible to customize a widget using an external stylesheet if the GUUID it's not fixed!

link publish delete flag offensive edit

answered 2010-08-24 16:55:29 +0800

robertpic71 gravatar image robertpic71
1275 1

Check the style example in demo >> here <<.

The simplest (but limited way) is to override via style-attribute:

<label id="msg" value="Hello, ZK" style="color:white;background:black"/>

You can use the <style> tag to override existing components or create sclass-overrides.

Check the link and the docs (Styleguide).

/Robert

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2010-08-24 14:36:57 +0800

Seen: 193 times

Last updated: Aug 24 '10

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