[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
New Attribute for Component(s)  XML
Forum Index -> Development
Author Message
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Hi Captain,

Is it possible for us to make our own attribute on some of the components ? Maybe using new tool Style Editor ?

Ex. for the field, I want to add an attribute padding, for special purposes. And bind some expressions in order for me to update runtime.

Regards, Vincent
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Defining own attributes, own components, etc. is possible of course - but then you have to...

1. dive into the JS-control structure
2. learn how to create own controls both on JS side and on JSF server side

If it is just the padding: this is contained in the style class definiton of the field anyhow, so for this I would rather use styling than using some own component/attributes.

Regards, Björn

Björn Müller, CaptainCasa GmbH
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Is it possible to bind expressions in the style class, just like binding some expressions to field's attributes ? So I can set it's value run time.

Regards, Vincent
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Nevermind captain, It works when I generated the xml dynamically and added the padding attribute.

Regards + Thanks, Vincent
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Is it possible to bind expressions in the style class, just like binding some expressions to field's attributes ? So I can set it's value run time.  


Yes - this is possible! - Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team