SAPUI5 Smart Table : How to Inject my own column into smart Table, Default columns, Define formatters, and Define aggregated columns

后端 未结 2 1831
别那么骄傲
别那么骄傲 2021-01-15 04:15

I am Using Smart Table. i want to know the following regarding this,

  1. How Make some columns visible by default
  2. How can we inject our own columns into s
2条回答
  •  生来不讨喜
    2021-01-15 05:00

    To build columns automatically from Service use smart table.
    1.How Make some columns visible by default?
    To get initial column you need specific annotation called LineItem. The fields under this will automatically built by smart.
    How can we inject our own columns into smart table, like if we want to display the icon based on the gender(male or female).
    How can we set aggregated columns like Name (FirstName + LastName).
    How to define the sorting and filtering on Aggregated Columns.

    Answers to all of this would be build your sap.m.Table and wrap it inside the smart table. By using this the columns built by you will you have custom coded functionality and column built by smart table (for other fields in service)

提交回复
热议问题