projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename primitive visual property in programming guide.
[platform/core/uifw/dali-toolkit.git]
/
docs
/
content
/
shared-javascript-and-cpp-documentation
/
item-view.md
diff --git
a/docs/content/shared-javascript-and-cpp-documentation/item-view.md
b/docs/content/shared-javascript-and-cpp-documentation/item-view.md
index
1313253
..
0242d19
100644
(file)
--- a/
docs/content/shared-javascript-and-cpp-documentation/item-view.md
+++ b/
docs/content/shared-javascript-and-cpp-documentation/item-view.md
@@
-32,13
+32,12
@@
public:
{
// We should create the actor here that represents our item based on the itemId given.
{
// We should create the actor here that represents our item based on the itemId given.
- // Here we'll create an Image
Actor
which uses the the itemId to parse the image in a particular directory.
+ // Here we'll create an Image
View
which uses the the itemId to parse the image in a particular directory.
std::ostringstream imageName;
imageName << "my-image-folder/" << itemId << ".png"; // If item was 10, then this would result in my-image-folder/10.png
std::ostringstream imageName;
imageName << "my-image-folder/" << itemId << ".png"; // If item was 10, then this would result in my-image-folder/10.png
- Dali::ResourceImage image = Dali::ResourceImage::New( imageName.str() );
- // Create
an Image Actor
from the image and return
- return Dali::
ImageActor::New( image
);
+ // Create
the Image View
from the image and return
+ return Dali::
Toolkit::ImageView::New( imageName.str()
);
}
};
~~~
}
};
~~~
@@
-70,4
+69,13
@@
itemView.ActivateLayout(
Dali::Stage::GetCurrent().Add( itemView );
~~~
Dali::Stage::GetCurrent().Add( itemView );
~~~
+## Actions
+The item-view provides an action to stop the scroll animation if desired.
+
+~~~{.cpp}
+Property::Map attributes;
+itemView.DoAction( "stopScrolling", attributes );
+~~~
+
+
*/
\ No newline at end of file
*/
\ No newline at end of file