Refactor: results expose Element as a named field
Every component result type now names its element Element instead of embedding *ui.Element. The eleven element-plus-changed results (AccordionView, CarouselView, CollapsibleView, ImageViewerView, PaginationResult, StepsResult, SidebarResult, TabsResult, RatingParts, FileDropZoneParts, TransferParts) fold into ChoiceResult. Fixes four Gallery demos where .Width(...).Changed() read the element's flag instead of the component's: Accordion, MultiSelect, Cascader, TreeSelect. TestDataAccordionDemoLogsChange covers the Accordion.
This commit is contained in:
73 files changed
+163
-245
No files matched your search
+1
-1
@@ -90,7 +90,7 @@ func TestSliderSnapshot(t *testing.T) {
|
||||
ui.Column(c).Padding(20).Gap(8).Width(380).Children(func() {
|
||||
Slider(c, &a, SliderOptions{Step: 5})
|
||||
s := Slider(c, &b, SliderOptions{Step: 25, Marks: marks, ShowValue: true, Format: func(v float64) string { return fmt.Sprintf("%.0f%%", v) }})
|
||||
s.Focus()
|
||||
s.Element.Focus()
|
||||
Slider(c, &d, SliderOptions{Disabled: true})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user