ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-li, ui5-li-custom: adding a "disabled" property/attribute

Open agauyeung opened this issue 6 years ago • 4 comments

Is your feature request related to a problem? Please describe. There is no way to prevent ui5-li and ui5-li-custom from being select-able in a ui5-list.

Describe the solution you'd like Add a disabled property/attribute to ui5-li and ui5-li-custom to prevent them from being selected in a ui5-list. (SingleSelect and MultiSelect)

Describe alternatives you've considered I've considered just not including a list item that I don't want to be select-able, but it is still useful to have the list item visible even if not select-able.

agauyeung avatar Apr 01 '20 01:04 agauyeung

Hello @agauyeung

Try setting type="Inactive":

<ui5-li type="Inactive"></ui5-li>

ilhan007 avatar Apr 01 '20 11:04 ilhan007

Hello @agauyeung

Try setting type="Inactive":

<ui5-li type="Inactive"></ui5-li>

Hi @ilhan007 Unfortunately, I have tried this but it does not work that way. "Inactive" only causes the list item to not respond to hover. Please see the example below: https://codesandbox.io/s/ui5-webcomponents-dwhw1

Please reopen this ticket if possible.

agauyeung avatar Apr 01 '20 15:04 agauyeung

Hello @agauyeung

Can you use rc.6? https://codesandbox.io/s/ui5-webcomponents-qtcx6

ilhan007 avatar Apr 01 '20 16:04 ilhan007

Hi @ilhan007 Thank you!

agauyeung avatar Apr 01 '20 17:04 agauyeung