icons - Update CSS on Data bind -
can update css on data bind.
here try toggle style reffed bind data on icon
cursor: pointer; , cursor:default
<core:icon id="submit button" size="2rem" src ="sap-icon://appointment" press="onappointmenticonclick" enabled ="{path: 'data>/isfree', formatter: '.buttonformat'}"></core:icon>
the answer of question "can update css on data bind" yes can using customdata formatters , writetodom property true , custom style
.sapuiicon[data-yourkey="xxx"] { cursor: default !important; }
here can find more details https://openui5.hana.ondemand.com/#docs/guide/1ef9fefa2a574735957dcf52502ab8d0.html
but on other hand bug @ icon control , fixed @ nightly(1.30) version https://github.com/sap/openui5/blob/master/src/sap.ui.core/src/sap/ui/core/icon.js#l443-l448
Comments
Post a Comment