code: def set_classes(self):
  		
  		# Custom field classes on field wrapper
  		if self.attrs.get("_field_class"):
  			self.values["class"].append(escape(self.attrs.get("_field_class")))
  
  		# Inline class
  		if self.attrs.get("_inline"):
  			self.values["class"].append("inline")
  
  		# Disabled class
  		if self.field.field.disabled:
  			self.values["class"].append("disabled")
  
  		# Required class
  		if self.field.field.required and not self.attrs.get("_no_required"):
  			self.values["class"].append("required")
  		elif self.attrs.get("_required") and not self.field.field.required:
  			self.values["class"].append("required")
docs: Set field properties and custom classes.