SpreadJS 13
SpreadJS Documentation / Developer's Guide / Features / Manage User Interface / Cell Types / Hyperlink Cell / Text Indentation
In This Topic
    Text Indentation
    In This Topic

    In a hyperlink cell, you can set text indentation for the hypertext. 

    The image shared below displays text indentation in a hyperlink cell.

    Text indentation in a hyperlink cell

    Using Code

    The following code sets the textIndent for the hyperlink in a hyperlink cell.

    JavaScript
    Copy Code
    // Set the textIndent in the hyperlink cell
    spread.getSheet(0).getCell(1, 1).textIndent(3);
    

    The table shared below describes how the Horizontal alignment and Text indentation work concurrently in a hyperlink cell:

    HorizontalAlignment

                                                                     TextIndent

    Left

    Increasing Indent value in the textIndent moves the hyperlink text one tab width to the right.

    Center

    The hyperlink text will be centered.

    Right

    Increasing Indent value in the textIndent moves the hyperlink text one tab width to the left.