css - Can I add style class on sap.m.objectnumber? -
i have decimal number displaying objectnumber element. number in bold , don't want that. can add css class element? if not how can solve this?
this element:
<objectnumber number="{ path: 'priceibtw', formatter: '.formatter.moneyformatter' }" unit="{valuta}"/>
i have tried looking style or class attribute don't seem have either 1 of them.
as nistv4n said before, emphasized
property availablein objectnuber. solve bold styling.
then if want add custom css can set class
property explained in api documentation.
here functional snippet:
<!doctype html> <html> <head> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta charset="utf-8"> <title></title> <script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-libs="sap.m" data-sap-ui-xx-bindingsyntax='complex' data-sap-ui-theme="sap_bluecrystal"> </script> <script id="view1" type="sapui5/xmlview"> <mvc:view controllername="my.own.controller" xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc" xmlns:core="sap.ui.core"> <panel> <hbox> <label text="standard objectnumber: " /> <objectnumber number="25" unit="eur" /> </hbox> <hbox> <label text="objectnumber without emphasized number: " /> <objectnumber number="25" unit="eur" emphasized="false" /> </hbox> <hbox> <label text="objectnumber css class: " /> <objectnumber number="25" unit="eur" class="sapuimediummarginbegin"/> </hbox> </panel> </mvc:view> </script> <script> var myview; var mycontroller = new sap.ui.controller("my.own.controller", { }) myview = sap.ui.xmlview({viewcontent:jquery('#view1').html()}); // put view onto screen myview.placeat('content'); </script> </head> <body id="content" class="sapuibody"> </body> </html>
Comments
Post a Comment