FaImage
🟡 Needs container
🟡 Doesn't accept child/children
API
pub fn fa_image(&mut self, id: &str, classes: &str, path: &str) -> Entity {
// ..
}
path
: Path to image relative toassets
folder.- Return entity of the widget which must be used as child of
FaContainer
widget.
Usage via builder
let image = builder.fa_image(..);
Example
let man = builder.fa_image("#bevy-logo", "", "300px", "300px", "man.JPG");
builder.fa_container("#container", "", &vec![man]);