Hi There,
I recently exported one custom widgets and i have some queries related to exported custom widgets.
Example :-
{
“version”: 1,
“customWidget”: {
“_id”: “EsBySx3bkFxispXqy”,
“javascript”: “$Some Code$”,
“html”: “”,
“css”: “”,
“name”: “$Name of custom widget$”,
“description”: “”,
“props”: [
{
“id”: “FWAc5XC7iwPFdJkDK”,
“name”: “My Prop”,
“description”: “”,
“requireWriteable”: false,
“type”: “string”
},
{
“id”: “Dah6xWyG6WgC4PeYX”,
“name”: “Widget Start”,
“description”: “”,
“requireWriteable”: false,
“type”: “boolean”
}
],
“events”: [
{
“id”: “yRAS5eBwuHCnNom3y”,
“name”: “My Event”,
“description”: “”,
“type”: {“$Tyep of output from event$”}
}
],
“icon”: “extension”,
“defaultWidth”: 500,
“defaultHeight”: 500,
“thirdPartyLibraries”: ,
“persistentId”: “HY6CpLyvzjzjmT3PE”,
“createdAt”: 1729081684946,
“createdBy”: “GYkJa2ZxiejRpJ8iK”,
“updatedAt”: 1729167175381,
“updatedBy”: “GYkJa2ZxiejRpJ8iK”
}
}
- Can anyone explain about each tags in this code (especially persistant id, icon etc) in this custom widget code.
- Can i create a custom widget in the similar format outside (Not in Tulip instance) and directly import in custom widget section of Tulip. If yes , How?