custom component property types

  • 2
  • Question
  • Updated 4 years ago
  • (Edited)
I know the answer is "coming soon" in the docs, but can someone give me a quick list of the options for "type" in the propsList definition for custom components?

var propsList = [ {
   id : 'person',
   type : 'string',
   label: 'Person to say Hello to',
   helptext : 'Pick a name, any name!'
 }
];

Thanks!


Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 4 years ago

  • 2
Photo of Andrew Duensing

Andrew Duensing, Employee

  • 740 Points 500 badge 2x thumb
Oh man, do I have a treat for you. This is pretty unofficial, but here's a builder file for a custom component I made with every possible type.

I know the documentation can leave you wanting in some areas, but trust me, we're working hard to make it better. 

http://pastebin.com/0iC3xtJn

[edited: inline code was replaced with a link]
(Edited)
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Thanks, Andrew! Anyway you can send the code in a format that's a little easier to read? This came out as one long string.
Photo of Andrew Duensing

Andrew Duensing, Employee

  • 740 Points 500 badge 2x thumb
Dang, that's pretty ugly. Here's a more readable looking one. http://pastebin.com/0iC3xtJn
Photo of Andrew Duensing

Andrew Duensing, Employee

  • 740 Points 500 badge 2x thumb
Yeah, I was gonna edit it, but apparently you can only edit/remove a post once.