JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Data Grid Columns "cellsFormat' property – docs to explain options?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #101053
    davout
    Member
    Up
    0
    Down

    I can’t find any central docs to explain what column format options are available for the ‘cellsFormat’ attribute that is set into the smart grid
    Also do you have an example available for the cell format function

    #101054
    admin
    Keymaster
    Up
    0
    Down

    Hi davout,
    About the DataGrid, we have detailed documentation about formatting available here: https://www.htmlelements.com/docs/grid-rows-columns/#formatting
    Best regards,
    Peter Stoev
    jQWidgets Team
    https://www.jqwidgets.com/

    #101055
    davout
    Member
    Up
    0
    Down

    I can’t see a good example of how to format a number data cell to be displayed as a string value
    For example…

    function(value: number): string {
    if  (value >= 1)  &&  (value <=5) {
    return ‘P’ + value;
    }
    else {
    return ”;
    }
    }

    Suggestions?
     

    #101056
    admin
    Keymaster
    Up
    0
    Down

    Hi davout,
    The document explains the built-in formatting, which was your question – cellsFormat. For custom formatting with custom function, look at this example: https://www.htmlelements.com/demos/grid/overview/ which uses a custom format function.
    Best regards,
    Peter Stoev
    jQWidgets Team
    https://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.