Recherchez dans toutes les rubriques de l'aide en ligne
let thisComponent = this; let buttons = [ {id: "button_1", position: "top", elementId: "raison_sociale", icon: "fas fa-users", style: "primary", label: "Bouton 1", function: "nom_fonction1()", col : 3}, {id: "button_2", position: "connection", elementId: "societe_mere", icon: "fas fa-users", function: "nom_fonction2()", col : 6}, {id: "button_3", position: "tools", icon: "fas fa-users", style: "danger", label: "Bouton 3", function: "nom_fonction3()", col : 4} ]; itemAddButton(thisComponent, buttons);
Param | Type | Description |
id | string | id du bouton |
position | string | Position du bouton : "right", "top", "bottom", "connection", "section" et "tools" |
elementId | string | id de l'élément parent du bouton |
icon | string | Icône font-awesome du bouton |
style | string | Style du bouton : "primary", "success", "danger", "warning" et "info" |
label | string | Titre du bouton |
function | string | Fonction à exécuter sur le clic du bouton |
col | int | Index de la class col-sm |