Jump to content

Finding info on specifics


zota
 Share

Recommended Posts

Hi!
 

Suppose you were intrigued by this line:
 

$field->attr('type','password');

 Question is: how do you find more info on, fort instance, the $field->attr(); thing? or, in general, how do you find those specifics that don't show up on processwire's search box, neither on the Soma's cheatsheet...

Thanks,

Julio


 

Link to comment
Share on other sites

I'd also suggest taking a look at this topic: https://processwire.com/talk/topic/2089-create-simple-forms-using-api/ It's essentially a community driven "what you need to know about the forms api". I wouldn't call it documentation, but you can learn a lot from the examples.

Also attr() is essentially meant for those html attributes, which are not input specific, which type is.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...