Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0
-
Fix Version/s: 4.1
-
Component/s: MOBI-Components
-
Labels:None
-
Environment:ICEfaces 4.1, mobi:camera
-
Assignee Priority:P1
-
Support Case References:Support Case 13464:- https://icesoft.my.salesforce.com/5007000001G9ug2
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial
Description
Customer request to have the mobi:camera optionally work with a graphic image instead of rendering a button with a label.
This should also be applied to ICEfaces-4 for mobi:camera.
In the old ice:pushButton we had an "image" attribute that when specified with a URL to an image resource, would cause the button to render as a clickable image. We could do the same thing here, possibly call the attribute "imageURL" ?
This should also be applied to ICEfaces-4 for mobi:camera.
In the old ice:pushButton we had an "image" attribute that when specified with a URL to an image resource, would cause the button to render as a clickable image. We could do the same thing here, possibly call the attribute "imageURL" ?
Issue Links
- blocks
-
MOBI-1143 mobi:camera - add image button support
- Open
r45738: added 'buttonImage' and 'captureButtonImage' attributes to mobi:camera.
These attributes work just like 'buttonLabel' and 'captureMessageLabel'. Initially, the image specified by 'buttonImage' will be shown. When, an image has been successfully captured by the device's camera, the image specified by 'captureButtonImage' will be shown.
These attributes take precedence over the text labels. 'captureButtonImage' only works if 'buttonImage' is specified as well (i.e. can't mix labels and images).
The image resource specified in these attributes can be either a byte array, an instance of IceOutputResource or a URL to a local or external image.