Documentation for creating/adding custom dynamic attribues?

Found the answer.