-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathCarousel.xml
More file actions
80 lines (80 loc) · 4.44 KB
/
Copy pathCarousel.xml
File metadata and controls
80 lines (80 loc) · 4.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" encoding="utf-8" ?>
<widget id="com.mendix.widget.native.carousel.Carousel" pluginWidget="true" needsEntityContext="true" offlineCapable="true"
supportedPlatform="Native"
xmlns="http://www.mendix.com/widget/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
<name>Carousel</name>
<description/>
<studioProCategory>Display</studioProCategory>
<studioCategory>Display</studioCategory>
<properties>
<propertyGroup caption="General">
<propertyGroup caption="Data source">
<property key="contentSource" type="datasource" isList="true">
<caption>Source</caption>
<description/>
</property>
<property key="content" type="widgets" dataSource="contentSource">
<caption>Content</caption>
<description/>
</property>
<property key="activeSelection" type="association" selectableObjects="contentSource" onChange="onChangeAction" required="false">
<caption>Active selection</caption>
<description/>
<associationTypes>
<associationType name="Reference"/>
</associationTypes>
</property>
</propertyGroup>
<propertyGroup caption="Effects">
<property key="animateExpression" type="expression" required="false">
<caption>Animate changed</caption>
<description>Animate when 'Active selection' association is changed, animation on user swiping will always be on.</description>
<returnType type="Boolean" />
</property>
</propertyGroup>
<propertyGroup caption="Display">
<property key="layout" type="enumeration" defaultValue="card">
<caption>Layout</caption>
<description>Define the way items are rendered and animated.</description>
<enumerationValues>
<enumerationValue key="card">Card</enumerationValue>
<enumerationValue key="fullWidth">Full width</enumerationValue>
</enumerationValues>
</property>
<property key="showPagination" type="boolean" defaultValue="true">
<caption>Pagination</caption>
<description>Show pagination indicator; dotted for 5 or less items, else show the number of items</description>
</property>
<property key="activeSlideAlignment" type="enumeration" defaultValue="center">
<caption>Card alignment</caption>
<description>Align current card to provide space to display next and previous card. (Only available for Layout type card)</description>
<enumerationValues>
<enumerationValue key="center">Center</enumerationValue>
<enumerationValue key="start">Beginning</enumerationValue>
</enumerationValues>
</property>
</propertyGroup>
<propertyGroup caption="Events">
<property key="onChangeAction" type="action" required="false">
<caption>On change</caption>
<description>When active selection association is changed.</description>
</property>
</propertyGroup>
<!-- Library has a bug with loops-->
<!-- https://github.com/archriss/react-native-snap-carousel/issues/653 - -->
<!-- https://github.com/archriss/react-native-snap-carousel/issues/608-->
<!-- Also not working properly with Mobx-->
<!-- <propertyGroup caption="Behavior">-->
<!-- <property key="loop" type="boolean" defaultValue="false">-->
<!-- <caption>Loop</caption>-->
<!-- <description>After the last item the carousel continues to the first item.</description>-->
<!-- </property>-->
<!-- </propertyGroup>-->
<propertyGroup caption="Common">
<systemProperty key="Name"/>
<systemProperty key="Visibility"/>
</propertyGroup>
</propertyGroup>
</properties>
</widget>