[ 
https://issues.apache.org/jira/browse/WEEX-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16120966#comment-16120966
 ] 

ASF GitHub Bot commented on WEEX-62:
------------------------------------

Github user MrRaindrop commented on the issue:

    https://github.com/apache/incubator-weex/pull/575
  
    jira issue: https://issues.apache.org/jira/browse/WEEX-62


> image Component can save image to photo Album or sd card
> --------------------------------------------------------
>
>                 Key: WEEX-62
>                 URL: https://issues.apache.org/jira/browse/WEEX-62
>             Project: Weex
>          Issue Type: New Feature
>            Reporter: xingZhang
>            Assignee: xingZhang
>              Labels: features
>
> image component support save image to photo Album or sd card
> design to support it with component Method.
> so the dsl  will be as follow:
> <image ref='image' 
> src="http://www.fresher.ru/manager_content/images2/kadry-veka/big/2-1.jpg"; 
> style="width:250px;height:250px;background-color:yellow"></image>
> js: 
>   var image = this.$refs.image;
>   image.save(function(result) {
>    console.log(result);
> });  // html5  iOS and Android provide their own component method
> the callback data result format maybe 
>   {
>     "success" : true/false,
>     "errorDesc": "errorDesc" // if the success is false, describe the reason 
> why this action failed.
>   }
> you can try a complete case:
>    case:  http://dotwe.org/vue/55b9f0683f9c8bb9e12788626608da4c



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to