Properties Methods Events Direct Link

# Class String

Package: | Global
Defined In: | Ext.js
Class: | String
Extends: | Object

These functions are available on every String object.

## Public Properties

This class has no public properties.

## Public Methods

Method | Defined By
--- | ---
| format( `String string`, `String value1`, `String value2` ) : String <static> Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. Each token ... <static> Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. Each token must be unique, and must increment in the format {0}, {1}, etc. Example usage:
    var cls = 'my-class', text = 'Some text';
    var s = String.format('<div class="{0}">{1}</div>', cls, text);
    // s now contains the string: '<div class="my-class">Some text</div>'
Parameters: `string` : String The tokenized string to be formatted `value1` : String The value to replace token {0} `value2` : String Etc... Returns: `String` The formatted string | String

## Public Events

This class has no public events.