No `class` / `style` property for `sap.m.Table` in the API reference
See original GitHub issueIn UI5 there are several pre-defined density / margins modes.
According to the API reference, in the list of sap.m.Table
methods, there is a reference to addStyleClass
/ removeStyleClass
, but no any mention of class
/ style
properties which can be used in an XML-template:
<Table class = "sapUiSizeCompact" />
Is it an API reference bug?
OpenUI5 1.97.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
sap.m.Table - API Reference - Demo Kit - SAPUI5 SDK
Description: Enables alternating table row colors. Note: This property can only be used with the Belize and Belize Deep themes. Alternate row coloring ......
Read more >Table Personalization - SAP Help Portal
TablePersoController; A table personalization persistence service provider, based on abstract class sap.m.TablePersoProvider. Table Personalization Dialog.
Read more >JsDoc Report - API Reference - sap.m.Table
Creates a new subclass of class sap.m.Table with name sClassName and enriches it with the information contained in oClassInfo . sap.m.Table.getMetadata ...
Read more >Smart Table | SAP Fiori Design Guidelines
The property placeToolbarInTable adds the toolbar to the corresponding aggregation of the inner SAPUI5 table. In most cases, set this to “true”, ...
Read more >SAP UI development Toolkit for HTML5 - API Reference - sap.m
FeedListItemThe control provides a set of properties for text, ... List or sap.m.Table . ListHeaderDesignDefines the different header styles.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
See above. It’s not wrong. It’s just not a feature of
sap.m.Table
(where you expected to find it), but ofXMLView
(which fails to document it). AndXMLView
supports it for each control, includingsap.m.Table
.It is, however, wrong to write the following in JS code
That’s why
class
is not listed as a property in the API reference of any of the controls. There are only very few places in UI5 where it makes a difference whether you use XML notation or JavaScript APIs.class
is one of them,binding
another one.@niyap, it’s actually the issue, please, have a look to the @codeworrior’s quote:
From the comment above, I may infer that a change is still needed to be applied on documentation of
@codeworrior, please, correct me if I got it wrong.