Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
protogrid:create-button [2018-03-02 10:03] – dru | protogrid:create-button [2018-03-02 10:26] – dru | ||
---|---|---|---|
Line 17: | Line 17: | ||
- | This code snippet generates a new Card ID. Next you need to add the code which actually creates your Card. For this, you need to know the key of the proto which you want your card to be based on (see [[protogrid: | + | This code snippet generates a new Card ID. Next you need to add the code which actually creates your Card. For this, you need to know the key of the [[protogrid: |
Now you can add the following code snippet below the one above, replacing " | Now you can add the following code snippet below the one above, replacing " | ||
Line 31: | Line 31: | ||
create_product(); | create_product(); | ||
</ | </ | ||
- | As the last step, add a button to the [[protogrid: | + | As last step, add a button to the [[protogrid: |
- | + | ||
- | That's it, clicking onto this Button will immediately create and open a new Card! | + | |
+ | That's it, clicking onto this button will immediately create and open a new Card! | ||