Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Let image widget display ImageItem and URLs of StringItem #19

Closed
dominicdesu opened this issue Sep 19, 2016 · 3 comments
Closed

Let image widget display ImageItem and URLs of StringItem #19

dominicdesu opened this issue Sep 19, 2016 · 3 comments

Comments

@dominicdesu
Copy link

dominicdesu commented Sep 19, 2016

Currently the image widget only supports a fixed URL.
Actually, OH2 has an ImageItem, which contains an image in raw format. Would be nice if I could select such an item and display it.

Additionally it would be great if I could select a String item, and read the URL from the item, instead of hard-coding it in the widget.

Sorry for creating all these tickets... 😃 if I find some time to get familiar with angular I'll also try to contribute.

@digiltd
Copy link
Contributor

digiltd commented Oct 11, 2016

You could always set the url to an image that you replace however you wish. i.e. have a image file in 'conf/icons/classic' called something like image-for-habpanel.jpg. Then as long as you keep the filename the same you can replace it using whatever method you wanted.

@ghys
Copy link
Member

ghys commented Feb 10, 2017

Closed in #143.

@ghys ghys closed this as completed Feb 10, 2017
@sagig76
Copy link

sagig76 commented Feb 16, 2017

I also need this functionality for the image widget.
It works with iFrame, the problem is that the image size I get is too large and the iframe can't resize the image. how can we get the same functionality in the image widget?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants