openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

[1.30.10] Button inside SegmentedButton visible=false issue

Open hschaefer123 opened this issue 11 years ago • 3 comments

Using a button like

<SegmentedButton>
  <Button visible="{device>/isNoPhone}" text="Button" />
</SegmentedButton>

always renders the child button!

In the chrome ui5 inspector you can see, that property visible : false

seems to be a render bug.

Best regards Holger

hschaefer123 avatar Oct 22 '15 08:10 hschaefer123

Hi Holger,

Issue is reproducible here http://jsbin.com/ruxihitatu/1/edit?html,js,output Internal incident 1580175895 has been created for this.

Regards, Cahit

aborjinik avatar Oct 23 '15 08:10 aborjinik

Nice JSBIN Frag! Copied for further tickets ;-)

Regards, Holger

hschaefer123 avatar Oct 23 '15 11:10 hschaefer123

Hi Holger,

Transforming this to enhancement (feature request), because the SegmentedButton "buttons" aggregation is supposed to be used only as an interface for the buttons displayed by the control and as the api documentation states: Only the properties ID, icon, text, enabled and textDirections of the Button control are evaluated. Setting other properties of the button will have no effect.

Other than that the "buttons" aggregation is deprecated and is better to use the new "items" aggregation which accepts "SegmentedButtonItem".

Best regards, Daniel

Nanovsky avatar Nov 10 '15 14:11 Nanovsky