Comments (3)
Files can be imported/required (similar to javascript files), with their imported value being the outputted filepath, which can be used with any regular <img />
tag. Importing/requiring the image file will add it to the files that will be outputted in the build.
For example:
import kind from '@enact/core/kind';
import logo from './logo.png'; // Tell Webpack this JS file uses this image
const MyLogo = kind({
render: function() {
// Import result is the URL of your image
return <img src={logo} alt="Logo" />;
}
});
export default MyLogo;
from enact.
Don't forget you can drop by our Gitter channel to ask questions!
from enact.
@JayCanuck It works. Thank you so much.
@webOS101 I'm sorry I have no knowledge of this before
from enact.
Related Issues (20)
- Enact Moonstone video player not working on Tizen Tv(5.0) HOT 5
- Inconsistent behavior HOT 9
- Unknown browser query `dead` HOT 3
- onToggle type not defined in CheckboxItem HOT 2
- Adding actual icons to the Icon documentation HOT 2
- Adding animation flag for the scroller / vertualList HOT 1
- viturallist navigation issue HOT 1
- Standalone uiLibrary in an external project HOT 4
- Compatibility with expressJS, reactJS and reactNative HOT 2
- Running test from any of the enact samples shows error HOT 2
- a vulnerability CVE-2020-15168 is introduced in @enact/core HOT 1
- Spotlight focus behaving differently depending on screen resolution. HOT 5
- how make a build that have filename with hash ? HOT 1
- video player error enact.js HOT 6
- enact js Version compatibility issue HOT 4
- Subtitles support in player HOT 18
- Video player is not supporting m3u8 HLS format HOT 13
- Problems when using the VideoJS Player in enact. HOT 2
- Sandstone QuickGuidePanels doesn't work properly HOT 3
- Unable to play google video ads in Video Player HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enact.