Default css class for forms

Status: Undecided. 2 ratings.

A default css class in the forms module would be practical (like "webnodes-form-module" or similar). It would make it easier for users to create new forms, without having to fill in a css class (they would probably forget it, or misspell it).

Suggested by Ernad Fajkovic
Comments
01.09.2011 - 15:55

In the meantime..
I usually create a class that inherits and replaces the base form class. It's usually just a matter of time before the users wants to make som changes anyway.
Then all you have to do is add these lines in the partial class file:

public override void OnNew() {
base.OnNew();
this.CssClass = "my-default-form-css-class";
}

02.09.2011 - 04:12

Just what I need!

Thanks :)

Re: Default css class for forms
23.09.2011 - 09:22
Since it's relatively easy to do at the moment, we haven't decided if we're going to do anything else to support this.

You must login to post comments