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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -