blockly > utils > string > wrap
Fonction utils.string.wrap()
Retour à la ligne automatique selon la largeur spécifiée.
Signature :
export declare function wrap(text: string, limit: number): string;
Paramètres
Paramètres | Type | Description |
---|---|---|
text | chaîne | Texte à renvoyer. |
limite | number | Largeur pour encapsuler chaque ligne. |
Renvoie :
chaîne
Retour à la ligne automatique.