Voir sur GitHub

Bootstrap Table Treegrid

Extension Table Treegrid de Bootstrap Table.

Sur cette page

Dépendance : jquery-treegrid v0.3.0

Utilisation

<script src="extensions/treegrid/bootstrap-table-treegrid.js"></script>

Exemple

Treegrid

Options

treeEnable

  • attribut : data-tree-enable

  • type : Boolean

  • Détail :

    Définissez true pour activer le tree grid.

  • Par défaut : false

idField

  • attribut : data-id-field

  • type : String

  • Détail :

    Remplace le idField par défaut par 'id'.

  • Par défaut : 'id'

parentIdField

  • attribut : data-parent-id-field

  • type : String

  • Détail :

    Définissez le champ d’identifiant parent.

  • Par défaut : 'pid'

treeShowField

  • attribut : data-tree-show-field

  • type : String

  • Détail :

    Définir le treeShowField activera automatiquement le tree grid.

  • Par défaut : ''

rootParentId

  • attribut : data-root-parent-id

  • type : String

  • Détail :

    Définissez l’identifiant parent racine.

  • Par défaut : null