Organiser et regrouper les actions lors de l'élaboration des packages
- Dernière mise à jour2022/05/19
Passez en revue les exemples fournis sur la façon d'ajouter et de regrouper les actions pendant le processus de développement du SDK du package.
@BotCommand
//CommandPks adds required information to be dispalable on the UI.
@CommandPkg(
//Unique name inside a package and a label to display.
name = "concatenate", label = "[[Concatenate.label]]",
node_label = "[[Concatenate.node_label]]", description = "[[Concatenate.description]]", icon = "pkg.svg",
//Return type information. return_type ensures only the right kind of variable is provided on the UI.
return_label = "[[Concatenate.return_label]]", return_type = STRING, return_required = true)
Utilisez l'élément group_label
pour ConcatenateGroup qui est également affiché dans l'interface utilisateur en tant que ConcatenateGroup. Lorsque le group_label
n'est pas utilisé, vous obtiendrez toutes les actions dans le package respectif.
@BotCommand
//CommandPks adds required information to be dispalable on the UI.
@CommandPkg(
//Provide a unique name inside a package and a label to display.
group_label = "ConcatenateGroup", name = "concatenateWithGroup", label = "concatenateWithGroup",
node_label = "[[Concatenate.node_label]]", description = "[[Concatenate.description]]", icon = "pkg.svg",
//Return type information. return_type ensures only the right kind of variable is provided on the UI.
return_label = "[[Concatenate.return_label]]", return_type = STRING, return_required = true)
public class ConcatenateWithGroup {