cancel
Showing results for 
Search instead for 
Did you mean: 

Aikau - set css class of form

nancygaillard
Champ on-the-rise
Champ on-the-rise
Hi,

I am using Alfresco 5.0.d with Alfresco SDK 2.0, I am French.
I am testing to add a form to the "simple page" page automatically creating in new Share Maven project.

Does somebody know how to modify the classes of form elements when I call an existing Share widget?

I am using form and form control widgets and I would like add for example "textbox1" in the classes of div containing textfield.

1 REPLY 1

ddraper
World-Class Innovator
World-Class Innovator
The long term plan is that Aikau won't need a lot of CSS customization. Ideally everything that you want to style could be done via LESS variables defined in your application themes. However, unfortunately we're still a long way from that goal at the moment. You could extend existing widgets simply to include your own CSS dependencies and then write more specific CSS selectors so that your styles are applied… however, we make *no* guarantee that the internal DOM structure of each widget will not change in the future so your selectors could become obsolete in future versions of Aikau. In more recent versions we also support the "additionalCssClasses" configuration attribute on all widgets built in model so you could use that to add in additional selectors and hook in your styles off that.

What would really be useful is to get your custom styling requirements so that we know what we need to do to meet them from a LESS configuration perspective.