Is it possible to define a new addon type like 'Button' ?
dali - 1 month ago
I want to define an upload button with some config pushed in to be used in builders' $buttons This button would work very similar to normal file field in UI side. (like modals and other stuff)
Andd I want to reuse this elsewhere. how can this be achieved?
I actually defined a button addon, pyro didnt complain about it. but how to bind a button to addon (???) I tried adding and handler to button, which points to a handler in the button addon but didnt work
ryanthompson - 1 month ago
Check out docs for buttons: http://pyrocms.com/documentation/streams-platform/v1.1#ui/buttons
Particularly the part about the definition and the
Then the button registry section outlines the
register method below a ways.
Those two sections should get you started on your way! Every registry for UI components has register methods as well.